[GRASSLIST:2176] Re: building 5.7 on cygwin

Glynn Clements glynn.clements at virgin.net
Fri Jan 9 16:10:28 EST 2004


Richard Greenwood wrote:

> Building 5.7 on cygwin I encounter an error - I can not get datetime to 
> build. It fails with: undefined reference to `_WinMain at 16' (complete 
> output below). Any suggestions greatly appreciated.

> gcc -s -L/usr/local/lib -L/lib/mingw -I/usr/include/mingw 
> -I/usr/include/w32api
> -L/home/Rich/grass57_exp_2004_01_03/dist.i686-pc-cygwin/lib        \
>          OBJ.i686-pc-cygwin/between.o OBJ.i686-pc-cygwin/copy.o 
> OBJ.i686-pc-cygwin/same.o OBJ.i686-pc-cygwin/diff.o 
> OBJ.i686-pc-cygwin/error.o OBJ.i686-pc-cygwin
> /format.o OBJ.i686-pc-cygwin/incr1.o OBJ.i686-pc-cygwin/incr2.o 
> OBJ.i686-pc-cygwin/incr3.o OBJ.i686-pc-cygwin/local.o 
> OBJ.i686-pc-cygwin/misc.o OBJ.i686-pc-cygw
> in/change.o OBJ.i686-pc-cygwin/scan.o OBJ.i686-pc-cygwin/sign.o 
> OBJ.i686-pc-cygwin/type.o OBJ.i686-pc-cygwin/tz1.o 
> OBJ.i686-pc-cygwin/tz2.o OBJ.i686-pc-cygwin/v
> alues.o  -o 
> /home/Rich/grass57_exp_2004_01_03/dist.i686-pc-cygwin/lib/libgrass_datetime.

It appears that you are trying to build shared libraries, which aren't
supported on Cygwin (building Windows DLLs is significantly more
complex than building Unix shared libraries).

You need to use the --disable-shared configure switch.

-- 
Glynn Clements <glynn.clements at virgin.net>




More information about the grass-user mailing list