[GRASS-dev] multiple definition of _fmode on Win32

Glynn Clements glynn at gclements.plus.com
Fri Apr 20 13:52:58 EDT 2007

Benjamin Ducke wrote:

> I am trying to compile yesterday's CVS sources on Win32 using MSYS and
> MingW (3.4.2).
> When the make script should link the gis lib objs (and other libs), I
> get this:
> OBJ.i686-pc-mingw32/open_misc.o(.data+0x0): In function `G__open_misc':
> C:/msys/src/grass6/lib/gis/open_misc.c:45: multiple definition of `_fmode'
> OBJ.i686-pc-mingw32/open.o(.data+0x0):C:/msys/src/grass6/lib/gis/open.c:98:
> first defined here
> collect2: ld returned 1 exit status
> make[2]: ***
> [/src/grass6/dist.i686-pc-mingw32/lib/libgrass_gis.6.3.cvs.dll] Error 1
> I updated from CVS ca. 18 hours ago and did a "make distclean" and "make
> clean" before running the configure script.

I've removed both occurrences of _fmode from libgis (in any case,
defining it inside a DLL doesn't work). _fmode should be defined by
linking against $(FMODE_OBJ).

Glynn Clements <glynn at gclements.plus.com>

More information about the grass-dev mailing list