C++ 101 - "Seeing" a Class variable in main.cpp
Posted: Sun Aug 03, 2008 3:42 pm
I have defined a class in a cpp file other than main.cpp.
But I cannot get the compiler to recognize it when I declare or try to instantiate it in main.cpp.
What do I need to do in my classxxx.cpp for the compiler to see the class in main.cpp.
The class is visible in the project view and outline view.
But I cannot get the compiler to recognize it when I declare or try to instantiate it in main.cpp.
What do I need to do in my classxxx.cpp for the compiler to see the class in main.cpp.
The class is visible in the project view and outline view.