To me it looks like the linking-order is wrong, dependencies and such might be messed up. Someone else have to help you with that tho, I don't know how VS does things.
I had a problem like that compiling a clean Powder Toy, but fixed it by restarting everything and relinked my dependencies. Dunno why it did that. Assume I had an error with linking.
What's relinked dependencies mean. I'm a noob with regard to C compiling and you guys keep using techno-talk like you are talking to a fellow expert, but I'm NOT an expert. That only confuses me more, and doesn't help me. If instead of saying "linking-order is wrong" say, this is what the compiler is trying to do, this is what it needs to do, and this is what to change to fix it. Same goes with "relinked my dependencies". What on earth does that mean, and how do I do it in VC++?