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!
This is a discussion on 'undefined reference to WinMain@16' within the C++ Programming forums, part of the General Programming Boards category; I'm trying to compile my first program that uses a class file and am getting a "undefined reference to WinMain@16" ...
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 human mind treats a new idea the way the body treats a strange protein; it rejects it. - P.B.Medawar
If you are on MSVS change your subsystem to Console and add a main function.
Arrogance breeds bad code
I'm writing my code in codeblocks 10.05. How would I change to a Console program?