I have a link list class, and a derived class from that. In the link list, there is a protected node pointer called "first". I need to used first in my derived class, I just use it as node<Type> *current = first. It seems to work fine in VS, but with g++ it tells me that first was not declared in scope. I'm not sure what I'm doing wrong, and I'd like my code to be as portable as possible.
Sorry, I guess I was too tired last night, because when I tried it again I realized that the first errors it gave me was that it wasn't finding the headers I included. I tried a simpler example, all in one file and it worked fine. I guess I just must have to change a setting in Netbeans to get it to see my files in the project. Does anyone know what I need to do?
I tried using Code::Blocks, and had the same problem, which leads me to assume it's something with g++.