Visual Studio 中 A definition for the symbol could not be located的问题解决

      在用Visual Studio进行C/C++编程过程中,F12快捷键是我们经常使用的快捷键,能够快速导航至相关函数的定义实现部分,方便我们查看函数实现内容。但是有时候由于代码更新,导致出现这样的问题,

     项目Project编译通过,但是使用F12导航相关函数时,出现symbol could not be located的报错

     这个时候需要重建VS的code browsing  database来进行解决,步骤如下:

   选择:
   Tools -> Options -> Text Editor -> C/C++ -> Advanced
   将 'Recreate Database' 选项设置为 'True'
   (Recreate Database = Recreate the code browsing  database from scratch upon the next solution load)
   确定保存'OK'
   然后重新加载解决方案 (*.sln)
 (重新编译解决方案)Rebuild the Solution;   Build -> Rebuild Solution 

   Visual Studio 中 A definition for the symbol could not be located的问题解决