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!
Printable View
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.
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?