I wrote a simple class:
c:\geometry\Point.h
c:\geometry\Point.cpp
I made a VS2005 project and added a Source File test.cpp which contains main(). In test.cpp, I #include "c:/geometry/Point.h"
When I build the project I get:
Unresolved external symbol "public: __thiscall Point::Point(double,double,double)" referenced in function _main.
However, if add Point.h to my Header Files and Point.cpp to my Source Files the error goes away. Why do I have to add these to the project? Can't I just use them by including them like I tried to?
Thanks,
David