解决方法:
在不打开任何解决方案的情况下,选择Tools -> Options -> Text Editor -> C/C++ -> Advanced,将'Recreate Database' 设置为'True'
Recreate Database = Recreate the code browsing database from scratch upon the next solution load
保存退出对话框。
重新加载解决方案,重新生成解决方案。
解决问题!
也可参看官网答案:
本文解决在使用Visual Studio编译C/C++代码时遇到的A Definition for the Symbol Could Not Be Located错误。通过在选项中设置'RecreateDatabase'为'True'来重建代码浏览数据库,从而解决错误并重新生成解决方案。
1万+

被折叠的 条评论
为什么被折叠?



