bug-gnubg
[Top][All Lists]
Advanced

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

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


From: Øystein Johansen
Subject: RE: [Bug-gnubg] Re: Compile on Windows
Date: Fri, 8 Nov 2002 21:27:19 +0100

>===== Original Message From Holger <address@hidden> =====
>Hi,
>
>If I change gnubg.c and hard-code the locale directory at line 5704:
>/*    bindtextdomain (PACKAGE, LOCALEDIR);  */
>    bindtextdomain (PACKAGE, "/HB/gcc/lib/locale");

Strange... that doesn't happend at my system, but it really shouldn't matter.

>then it compiles well, except for some warnings that are not related to this
>error.

Never mind those warnings...

>However, linking doesn't work (for me).
>
>It fails with:
>eval.o(.text+0x321b):eval.c: undefined reference to `getBearoffGammonProbs'
>eval.o(.text+0x334b):eval.c: undefined reference to `getBearoffGammonProbs'

There's a new file in the source. bearoffgammon.c

open the Makefile and add bearoffgammon.c under SRC. And add bearoffgammon.o
to OBJS.

>gnubg.o(.text+0xe596):gnubg.c: undefined reference to `libiconv_open'
>gnubg.o(.text+0xe5ef):gnubg.c: undefined reference to `libiconv'
>[snipped]

While you're still in the Makefile add -liconv to LIBS.
(or is it called -liconv.dll ?)

>gnubg.o(.data+0x1470):gnubg.c: undefined reference to `CommandRecordShow'
>gnubg.o(.data+0x2b2c):gnubg.c: undefined reference to `CommandRecordShow'
>gtkgame.o(.text+0x3486):gtkgame.c: undefined reference to
>`CreateCubeAnalysis'
>gtkgame.o(.text+0x34ac):gtkgame.c: undefined reference to `CreateMoveList'
>[snipped]
>gtkgame.o(.text+0x12fe5):gtkgame.c: undefined reference to `CreateMoveList'
>gtkgame.o(.text+0x1f0a7):gtkgame.c: undefined reference to
>`RecordReadItem'

I think you miss record.o and record.c in your Makefile as well. (Maybe I
should update the Makefile at my site...?! )

>C:\HB\gcc\bin\..\lib\gcc-lib\i386-mingw32msvc\2.95.2\..\..\..\libxml2.a(nanof
tp.
>o)(.text+0xa94):nanoftp.c: undefined reference to
>address@hidden'
>[snipped]
>C:\HB\gcc\bin\..\lib\gcc-lib\i386-mingw32msvc\2.95.2\..\..\..\libxml2.a(nanoh
ttp
>.o)(.text+0x1367):nanohttp.c: undefined reference to
>address@hidden'
>C:\HB\gcc\bin\..\lib\gcc-lib\i386-mingw32msvc\2.95.2\..\..\..\libxml2.a(nanoh
ttp
>.o)(.text+0x1425):nanohttp.c: undefined reference to address@hidden'

This looks a bit spooky. I can't explain why this happens at your system. I'm
not sure which library you're missing either.
A shot in the dark: Try to add -lwinsock32 to LIBS in the Makefile

>--
>I wrote:
>> Hi all,
>>
>> Could you help me compile on Windows (2000 and at home 95), please?
>>
>> It fails with :
>> gnubg.c: In function `real_main':
>> gnubg.c:5704: parse error before `/'

This was fixed by the hardcoding....?

>> gnubg.c: In function `Convert':
>> gnubg.c:6675: warning: passing arg 2 of `libiconv' from incompatible
>> pointer
>> type

Never mind. It's different versions of iconv from Jørns machine.

>> gnubg.c: At top level:
>> gnubg.c:364: warning: `szCOMMAND' defined but not used
>> make: *** [gnubg.o] Error 1

Never mind....

>> getopt.c: In function `_getopt_internal':
>> getopt.c:647: warning: implicit declaration of function `strncmp'
>> getopt.c:692: warning: suggest explicit braces to avoid ambiguous `else'

Never mind. getopt.c isn't even our file.

>> I think, I should have everything that's required.
>>
>> I unpacked gcc-2.95.2-msvcrt.exe to C:\HB\gcc and the following files as
>> well:
>> gdbm-1.8.0-bin.zip
>> gdbm-1.8.0-lib.zip

I know Nardy and I use different versions of gdbm. which one this is I'm not
sure, but it's probably alright.

>> gettext-dev-0.10.40-20020904.zip
>> glib-2.0.6-20020802.zip
>> glib-dev-2.0.6-20020802.zip
>> gtk+-1.3.0-20020922.zip
>> gtk+-dev-1.3.0-20020912.zip
>> libiconv-1.7-bin.zip
>> libiconv-1.7-lib.zip
>> libintl-0.10.40-tml-20020904.zip

>> libw11-2001-12-01-bin.zip
>> libw11-2001-12-01-lib.zip

What's libw11 ?? I don't think I use that?

>> libxml2-2.4.12-1-lib.zip
>> libxml2-2.4.12-bin.zip

I think I use a different version of libxml2, not sure which but I think the
strange linking problem comes from this library.

>>
>> I also fetched Makefile, lib/Makefile and config.gui from Oysteins site,
>> added includes in Makefile:
>> INCLUDE = -I. -I./lib -IC:/HB/gcc/include/glib-2.0
>> -IC:/HB/gcc/lib/glib-2.0/include \
>> -IC:/HB/gcc/lib/gtk+/include

Fine

>> I've changed the dir for the locale to:
>> DEFS    = -DHAVE_CONFIG_H -DLOCALEDIR=\"/HB/gcc/lib/locale\"

This was hardcoded later (?)

>> What else is missing?

That should be it I guess. You you have some guts you could of course also try
to compile with gtk-2.0. I've done it and it looks a bit cooler.

>> TIA,
>>
>> Holger

Good luck,
-Øystein






reply via email to

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