How can I resolve unresolved characters (LNK2001) for _RTC_InitData and _RTC_Shutdown

I am building an x64 lib in Visual Studio 2008 and separately linking it to the x64 DLL (specifically using the WDK Build.exe toolchain in this case). Most of the common C runtime characters are concatenated fine, indicating that the library versions are reasonably well matched, but these two RTC_ * characters do not work. Forcing different versions of the runtime library as well as the aggressive symbol included in the linker options for lib does not solve the problem.

0


source to share


1 answer


These symbols RTC_*

are mentioned in several places on Google, but not documented. These are the entry points used by the new Runtime Check (RTC) functionality for the VC9 compiler. Disable runtime checks in [Project Property Pages] > Configuration Properties > C/C++ > Code Generation

by setting Basic Runtime Checks

from Both (/RTC1, equiv. to /RTCsu)

to Default

.



+1


source







All Articles