The solution of two links error in compiling Win32 Dynamic Library project

Source: Internet
Author: User
Tags win32

Author: Zhu Jinchan

Source: http://blog.csdn.net/clever101

Today compiled a WIN32 dynamic library project, there are two links to the wrong solution, one is:

Main.obj:error LNK2001: unresolved external symbols _rtc_shutdown

Main.obj:error LNK2001: unresolved external symbols _rtc_initbase

This is because the Run-time library check was performed and the solution is as follows:

Click on the item, modify: Properties > Configuration Properties > + + + + > Code generation > Basic Run-time Check, change the value from "both (/RTC1, equivalent to/RTCSU)" to "Default value", as the following figure:

Another error is link:errorlnk2001: unresolved external symbol __dllmaincrtstartup@12 because the DLL's entry point function was not found, so you can set the DLL project to no entry point, as follows:




Reference documents:

1.error LNK2001: unresolved external symbol _dllmaincrtstartup@12

2. Compile-time _rtc_shutdown and _rtc_initbase-related error resolution

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.