undefined reference to 'WinMain@16' [message #1817877] |
Mon, 02 December 2019 01:14  |
Eclipse User |
|
|
|
I'm trying to compile the code on the Win32 tutorial page on Microsoft's website (I would link but forum rules are preventing me) using MinGW and the CDT internal builder, but I get the following error:
" c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../../mingw32/bin/ld.exe: c:/mingw/bin/../lib/gcc/mingw32/8.2.0/../../../libmingw32.a(main.o):(.text.startup+0xb0): undefined reference to `WinMain@16' "
I've googled a ton and all I could find were references to unsaved projects, and I went ahead and turned save before build on in the preferences, but still no luck. Does anyone know where I could have gone wrong?
On a similar note, I've tried to use the Visual C++ toolchain instead but it seems it can't find windows.h or something, as that's the only #include in the code and it gives a ton of errors when that's the toolchain. Would anyone have an idea on that either?
|
|
|
|
Powered by
FUDForum. Page generated in 0.25768 seconds