<insert program name>.exe is not a valid Win32 application

My program compiles just fine and then I get this error saying that the program is not a valid Win32 application. My project consists of two files: Classes.h and mainHotSA.cpp

You can view the code for the first here:

And here's the code for mainHotSA.cpp:

Also, I don't know if it matters or not but I'm running a Windows 7 64-bit, and I compiled the code with MinGW.
And if you want to try to run the .exe yourself:

I have no clue what to do here as this is the first time something like this happend.
Have you tried running it in legacy mode? http://msdn.microsoft.com/en-us/library/windows/desktop/aa384249(v=vs.85).aspx

Don't get too discouraged, this is a common enough issue for people to over look.
What compiler are you using?
I'm using mingw, and this only happens for this program.
It doesn't make sense then. I'd say create a new project and copy+paste all of the code into the new project. You are making new folders for all of your projects right?
Topic archived. No new replies allowed.