project -> properties ->c/c++ General -->indexer 选中“Enable project specific settings" ,再在 Build configuration for indexer 选"Use active build configuration"
再选中项目,点鼠标右键,index-->rebuild
project -> properties ->c/c++ General -->code Analysis 去掉Syntax and Semantic Errors