[Top][All Lists]

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

RE: [Bug-gnubg] Re: Compile on Windows

From: Holger
Subject: RE: [Bug-gnubg] Re: Compile on Windows
Date: Mon, 11 Nov 2002 01:26:52 +0100

On Sun, 10 Nov 2002 01:10:38 +0100 I wrote:
>Hi Øystein,
>Thanks for your help. Right now I'm at home and trying to compile under
Windows 95.
>Here I still only have the snapshot from 021030, so I don't have
bearoffgammon.* yet. For
>the rest it shouldn't make a difference, I suppose.
>Unfortunately, I have to say that it still doesn't work.
>gcc -fnative-struct -O2 -Wall -DHAVE_CONFIG_H
-DLOCALEDIR=\"J:/glib/lib/locale\" \
> -I. -I./lib -Ij:/GNUbg/ext -Ij:/gcc/i386-mingw32msvc/include
-Ij:/glib/include \
> -Ij:/GTK+/include -Ij:/iconv -Ij:/intl/include -Ij:/gdbm/include
-Ij:/xml2/include/libxml2 \
> -c sound.c -o sound.o
>sound.c:988: arguments given to macro `SoundWait'
>make: *** [sound.o] Error 1
>I had a look at the source, and it doesn't make sense to me. I hope that
you've got a clue.

I solved this one myself. I didn't see the macro definition in sound.h at

After adding
#define USE_SOUND 1 to config.gui
#include "mmsystem.h" to sound.c for defining SND_FILENAME and SND_ASYNC
(why wasn't this there?)
compilation works well.

I also added -lwsock32 to LIBS. But I still get the following (at least
less) errors during linking:

gcc -o gnubg analysis.o copying.o credits.o database.o dice.o drawboard.o
erf.o \
eval.o export.o external.o getopt.o getopt1.o gdkgetrgb.o gnubg.o
gtk-multiview.o \
gtkboard.o gtkcube.o gtkchequer.o gtkexport.o gtkgame.o gtkprefs.o
gtktheory.o \
guile.o html.o i18n.o import.o kleinman.o latex.o matchequity.o matchid.o
play.o \
positionid.o postscript.o pub_eval.o record.o rollout.o set.o sgf.o sgfl.o
sgfp.o \
show.o sound.o strdup.o text.o -mwindows -L./lib
-Lj:/gcc/i386-mingw32msvc/lib \
-Lj:/gcc/lib -Lj:/gcc/lib/gcc-lib/i386-mingw32msvc/2.95.2 -Lj:/glib/lib
-Lj:/GTK+/lib \
-Lj:/iconv -Lj:/intl/lib -Lj:/gdbm/lib -Lj:/xml2/lib -levent -lxml2
-lintl.dll -lgdbm.dll \
-lglib-2.0.dll -lgdk.dll -lgtk.dll -liconv -lwinmm -lm -lwsock32
gnubg.o(.text+0xe516):gnubg.c: undefined reference to `_imp__libiconv_open'
gnubg.o(.text+0xe578):gnubg.c: undefined reference to `_imp__libiconv'
gnubg.o(.text+0xe60e):gnubg.c: undefined reference to `_imp__libiconv_close'
j:/xml2/lib\libxml2.a(nanohttp.o)(.text+0xfd9):nanohttp.c: undefined
reference to `fcntl'
j:/xml2/lib\libxml2.a(nanohttp.o)(.text+0xffc):nanohttp.c: undefined
reference to `fcntl'
make: *** [gnubg] Error 1

The calls should be in those libraries that I have already included,
shouldn't they? (namely iconv, but where is fcntl defined? Not in fcntl.h.)

TIA and regards,

        Holger, slightly confused

reply via email to

[Prev in Thread] Current Thread [Next in Thread]