Error lnk2019: the external symbol "public: void _ thiscall" that cannot be parsed

Source: Internet
Author: User

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 ~~

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.