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