LNK2019 error working with header file creation.
Posted on 2006-06-28
Please forgive my ignorance on this one, but I have been fighting with this for too long now.
I have a program that I am writing that requires several classes to be designed and utilized. In the course of designing the
header files for the classes, I must break the class declarations (within the header files) apart from the class coding.
/* this is all in HEADERNAME.h */
/* this is all in HEADERNAME.cpp */
someclass::someclass( void )
someclass::~someclass( void )
My problem is that my compiler (Visual Studio.net 2003) runs fine if the entire class content is in the .h file, but gives me an error LNK2019 when I attempt to break the file into the .h file and the .cpp file.
Any help would be awesome. Thank you in Advance!
William Sean Grant