I am using a header file and a cpp file on codeblocks, and it seems the codes looks fine, but when I try to run the program, it said undefined reference to WimMain@16, and I have no idea what that means.. I am new to programming so could anyone help me please? Thank you!
Also.... you have your project set up to be a WinAPI program instead of a console program... so it's actually looking for WinMain rather than main. So even if you add main, you might still get this error.
In addition to adding main, you need to go in your project settings and change the program to be built as a console program.