I am using Visual Studio 6.0 to compile this program. When I compile I get an error stating that there are unresolved external variables. I cut my code, started a new workspace and pasted my code in it and then the error was gone.

Does anyone know what would cause this type of error and how to prevent it?