[Mono-list] problem building pedump on cygwin - WinMain@16

Nick Drochak ndrochak@gol.com
Wed, 12 Sep 2001 17:09:25 +0900


| From: dm [mailto:dm]On Behalf Of Dietmar Maurer
| Sent: Wednesday, September 12, 2001 4:56 PM

| Nick Drochak wrote:
| 
| > make[3]: Entering directory `/home/Administrator/mono/mono/metadata'
| > /bin/sh ../../libtool --mode=link gcc  -g -Wall -Wunused 
| -Wmissing-prototypes -W
| > missing-declarations   -o pedump.exe   -L/usr/local/lib -lglib 
| -L/usr/local/lib
| > -lgmodule -lglib
| 
| There are no files to link in the above gcc call, so there is 
| also no main function.

I see.  There should be a pedump.o, and possible others then?

| 
| > gcc -g -Wall -Wunused -Wmissing-prototypes 
| -Wmissing-declarations -o pedump.exe
| >  -L/usr/local/lib /usr/local/lib/libgmodule.a /usr/local/lib/libglib.a
| > /usr/lib/libcygwin.a(libcmain.o)(.text+0x6a):libcmain.c: 
| undefined reference to
| > `WinMain@16'
| > collect2: ld returned 1 exit status
| > make[3]: *** [pedump.exe] Error 1
| > make[3]: Leaving directory `/home/Administrator/mono/mono/metadata'
| > make[2]: *** [all-recursive] Error 1
| > make[2]: Leaving directory `/home/Administrator/mono/mono'
| > make[1]: *** [all-recursive] Error 1
| > make[1]: Leaving directory `/home/Administrator/mono'
| > make: *** [all] Error 2
| >
| 
| Strange - which version of automake/autoconf do you use (autoconf 
| --version)?

The system I tried it on has:
automake 1.5
autoconf 2.52

Thanks,
Nick D.