[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Trying to install/make on Win32. . . unsuccesfully:(

David's Lightspeed Email wrote:

> g++ -o /V/bin/gnuwin32/vgen /V/obj/gnuwin32/vgapp.o /V/obj/gnuwin32/vgcmdw.o
> /V/obj/gnuwin32/vgcode.o /V/obj/gnuwin32/vgmdlg.o /V/obj/gnuwin32/vgdlmdlg.o
> /V/obj/gnuwin32/vgcnv.o
> /V/obj/gnuwin32/vgrc.o -L/V/lib/gnuwin32 -lV -lcomctl32 -mwindows
> /CYGWIN/H-I586~1/i586-cygwin32/bin/ld: warning: cannot find entry symbol
> _WinMainCRTStartup; defaulting to 00401000
> C:\CYGWIN\H-I586~1\BIN\..\lib\gcc-lib\i586-cygwin32\egcs-2.91.57\..\..\..\..
> \i586-cygwin32\lib/libcygwin.a(libcmain.o): In function `main':
> /home/noer/src/b20/comp-tools/devo/winsup/libcmain.cc:38: undefined
> reference to `WinMain@16'
> collect2: ld returned 1 exit status
> make: *** [/V/bin/gnuwin32/vgen] Error 1

> Any help would be appreciated.  I don't have that much experience with the
> make command, and figure that this is probably just a symantic or grammatic
> error somewhere in one of the makefiles.

Hi, I had the same problem. I'm using NT 4.0. At home where I have Win95 every
thing works just fine.
The solution isn't that elegant but it works !
The object file of vstartup.o must be the first one to be linked so in each
makefile you have to make a litlle change.
After specifing the output file (and may some other flags like debug info etc)
you have to put this string: '/V/obj/gnuwin32/vstartup.o' and then continue with
all your object files, lib directory specifiers and the libraries.

It should look like this:

'g++ -o /V/bin/gnuwin32/vgen /V/obj/gnuwin32/vstartup.o /V/obj/gnuwin32/vgapp.o
/V/obj/gnuwin32/vgcode.o /V/obj/gnuwin32/vgmdlg.o /V/obj/gnuwin32/vgdlmdlg.o
/V/obj/gnuwin32/vgrc.o -L/V/lib/gnuwin32 -lV -lcomctl32 -mwindows'

Hope this work for you also.

Good luck


V is a good choice :-)
If you would like to get rid of the warning in linking:

/CYGWIN/H-I586~1/i586-cygwin32/bin/ld: warning: cannot find entry symbol
_WinMainCRTStartup; defaulting to 00401000

use this option in linking command line '-e _mainCRTStartup'.

Przemyslaw G. Gawronski ICQ:8358522

Reply to: