I'm trying to compile my first program that uses a class file and am getting a "undefined reference to WinMain@16" error. Does anyone know how to fix this? Thank you!
I'm trying to compile my first program that uses a class file and am getting a "undefined reference to WinMain@16" error. Does anyone know how to fix this? Thank you!
Sounds like you've set your project for a Windows program instead of a Console program.
The cost of software maintenance increases with the square of the programmer's creativity. - Robert D. Bliss
If you are on MSVS change your subsystem to Console and add a main function.
I'm writing my code in codeblocks 10.05. How would I change to a Console program?