views:

18

answers:

0

I opened Visual Studio, and received around 100 errors on trying to compile. Things including 'variableName is not identified', even in functions defined in the header file where the variable is...And right-click go to definition shows it correctly; using old copies of my files, meaning there were compile errors where templates had been left off of class names, and things like that.

I have no clue why this happened. I deleted the entire Obj folder (where all the .obj files are) and moved the source files out the project and then back in, but I still have issues.

It makes no sense. Can anyone explain this?

EDIT: A bit of fiddling later, it seems most of the errors are redefinition of class X or global constant Y, and clicking on the errors seem to popup a different file. So if the edefinition error is in FooFile.h, it opens foofile.h. Which is some reason included, causing redefinitions. They seem to be different files, and I think this is the cause.