WDM驱动开发 链接错误error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 referenced in function _main

1>------ Build started: Project: ConsoleTest, Configuration: Debug Win32 ------
1>Compiling...
1>main.cpp
1>Linking...
1>main.obj : error LNK2019: unresolved external symbol @_RTC_CheckStackVars@8 referenced in function _main
1>main.obj : error LNK2019: unresolved external symbol __RTC_CheckEsp referenced in function _main
1>main.obj : error LNK2001: unresolved external symbol __RTC_Shutdown
1>main.obj : error LNK2001: unresolved external symbol __RTC_InitBase
1>./Debug/ConsoleTest.exe : fatal error LNK1120: 4 unresolved externals
1>Build log was saved at "file://e:/Windows驱动/Windows驱动开发技术详解/Windows驱动开发技术详解/chapter11/Test3/Test/Debug/BuildLog.htm"
1>ConsoleTest - 5 error(s), 0 warning(s)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

 

 

解决办法:

在最初搭建环境时的配置中有以下一项

菜单“ 工具”-> 选项”-> 左侧“ 项目和解决方案”->VC++ 目录”-> 右侧“ 可执行文件” 下拉列表-> 添加一项D:/WINDDK( 根据你的实际情况)

将其拖至最后一行再重新编译即可。

你可能感兴趣的:(function,File,Build,工具)