问题
I've been writing a 2D game engine for about two years now, recently intellisense has been throwing false errors. The code compiles, links and runs just fine but there will be upwards of 70 "errors" reported by intellisense:
I tried deleting the SQL file for both the test project and the library generator project but the errors stopped for one, and only one, build while the intellisense database was rebuilt.
Even though it is not detrimental or stopping me from coding it's quite annoying to have to scroll all the way to the bottom to find the real error(s) when there is one.
回答1:
Solved.
It indeed was a configuration problem. Intellisense does not like relative paths. I added entries in the VC++ Directory listings that were absolute in addition to the relative paths and all is well.
来源:https://stackoverflow.com/questions/16719527/visual-studio-2010-intellisense-throwing-false-errors