External symbols that cannot be parsed when a third-party library lib/DLL is referenced

Source: Internet
Author: User

External symbols that cannot be parsed when a third-party library lib/DLL is referenced:
Error:
Error lnk2019: the external symbol "_ declspec (dllimport) Public: _ thiscall Add ::~ Add (void)
Unable to connect to class implementation in library lib loaded externally
Compilation can be performed through

Explanation:
Because the specified msqerror class does not use declarative _ declspec (dllexport)
The project mesquite is responsible for generating lib files from the source file, and using the third-party libraryProgramUsually, I. Add the header file containing directory (V in C/C ++, General, additional include directory :), used to include the header file,
Used in this compilation
Ii. lib and DLL files used to add links (in the linker, input, and add dependencies :).
3. specify where to find the Lib library file (in the linker, General, additional Library :)

Therefore, if an error occurs when the mesquite library is used, define # define mesquite_export _ declspec (dllexport.

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.