This is the mail archive of the
mailing list for the Cygwin project.
Unresolved reference to WinMain@16
- To: "'GNU-Win32'" <gnu-win32 at cygnus dot com>
- Subject: Unresolved reference to WinMain@16
- From: Colin Peters <colin at bird dot fu dot is dot saga-u dot ac dot jp>
- Date: Mon, 24 Mar 1997 16:01:33 +0900
While trying out a short piece of code from another thread I ran across
the "Unresolved reference to WinMain@16" error. The odd thing is it only
seemed to happen when I compiled and linked in the same step, i.e.
gcc -o test.exe test.c -windows
gcc -c -o test.o test.c
gcc -o test.exe test.o -windows
This was with the Mingw32 system (release 0.1.3), so I'm wondering
firstly whether anyone else has encountered this problem at all and
secondly whether anyone has encountered it while using the normal
Cygnus system instead of Mingw32.
PS. In case you're wondering the option -windows is sort of a Mingw32
thing. Probably under Cygwin32 the appropriate option would be
"-luser32 -lkernel32 -Wl,--subsystem,windows".
-- Colin Peters - email@example.com
-- Saga University Dept. of Information Science
For help on using this list, send a message to
"firstname.lastname@example.org" with one line of text: "help".