RE: [Dev-C++] Error: ... undefined reference to `WinMain@16'
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Abhijit S. <mu...@gm...> - 2003-06-12 17:13:55
|
> \DEV-C_~1\Lib\\libmingw32.a(main.o)(.text+0x8e): undefined reference to
`WinMain@16'
Greets, Mister Maust.
Try creating a console program (somewhere in `Project Options'), rather than
a GUI program. Otherwise, wrap main like this (be careful if you're using
console I/O, though):
int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int)
{
// Parse args if necessary.
return main();
}
________________________________________
Abhijit Shylanath
http://mudeth.tripod.com/
|