I have been working on our new assignment, which is a statistics class. I had the header and implementation files all written and could not get them to compile, I kept getting:
error C2011: 'stat' : 'struct' type redefinition
Which I found out means that the class definition was read twice, like maybe the header was being read in more than once. I used a macro guard, checked everything multiple times, and then in frustration, created a new cpp, and stripped everything out of the files and just tried to compile this:
haaaa!
whar.h came up in some of the many error messages, I even Googled it, I just didn't make the connection.
I should've figured that one out for myself, thanks so much.
Once I changed the classname to statistics, I was able to complete the rest of the project with no problems(other than a few simple syntax errors).
Someone else in my class was having the same problem, and when I told him to change the class name, he said: "I didn't #include wchar.h, so it shouldn't cause any problems".
I am guessing that maybe wchar is included when you use iostream, but I'm just guessing.
I went into my include dir, opened iostream, and searched for wchar, it wasn't there.
How is wchar.h being included in my project?