From: colin AT bird DOT fu DOT is DOT saga-u DOT ac DOT jp (Colin Peters) Subject: Unresolved reference to WinMain AT 16 24 Mar 1997 00:38:30 -0800 Sender: daemon AT cygnus DOT com Approved: cygnus DOT gnu-win32 AT cygnus DOT com Distribution: cygnus Message-ID: <01BC386C.A5DED980.cygnus.gnu-win32@gbird0> Original-To: "'GNU-Win32'" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Original-Sender: owner-gnu-win32 AT cygnus DOT com Hello all, While trying out a short piece of code from another thread I ran across the "Unresolved reference to WinMain AT 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 failed while gcc -c -o test.o test.c gcc -o test.exe test.o -windows worked. 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. Colin. 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 - colin AT bird DOT fu DOT is DOT saga-u DOT ac DOT jp -- Saga University Dept. of Information Science -- http://www.fu.is.saga-u.ac.jp/~colin/index.html -- http://www.geocities.com/Tokyo/Towers/6162/ - For help on using this list, send a message to "gnu-win32-request AT cygnus DOT com" with one line of text: "help".