Error message:
Error lnk2019: the external symbol that cannot be parsed "public: void _ thiscall carcball: setbounds (INT, INT )"(? Setbounds @ carcball @ qaexhh @ Z). This symbol is used in the function "public: void _ thiscall cchild3dview: onsize (unsigned int, Int, INT )"(? Onsize @ cchild3dview @ qaexihh @ z) is referenced
1> D: \ Visual Studio 2008 \ mod \ debug \ mod.exe: Fatal error lnk1120: 1 external command that cannot be parsed
Error code:
Xxx. h
Inline void setbounds (INT newwidth, int newheight );
Xxx. cpp
Void carcball: setbounds (INT newwidth, int newheight) {// set the adjustment factor of length and width this-> adjustwidth = 1.0f/(glfloat) newwidth-1.0f) * 0.5f ); this-> adjustheight = 1.0f/(glfloat) newheight-1.0f) * 0.5f );}
Haha, because the previous definition of this function is directly stored in the. h file, and inline is used. When the result is put into the source file, no attention is paid .....
Solution:
Just remove inline ~~