Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Compiling Fruit 2.0 problems.

Author: Daniel Mehrmannn

Date: 09:04:53 03/17/05

Go up one level in this thread


On March 17, 2005 at 05:13:44, Joshua Haglund wrote:

>I'm looking for a Visual Studio 8 makefile (nmake -makefile.nt).
>
>Maybe someone can post what they can use in the command line ... that works.
>cl...
>link...
>
>Since I have not found one yet. I used G++
>
>One warning...
>posix.cpp: In function `bool input_available()':
>posix.cpp:98: warning: comparison of unsigned expression < 0 is always false
>
>g++ -o Fruit.exe attack.o...
>...
>...
>util.o(.text+0x470):util.cpp: undefined reference to `now_real()'
>util.o(.text+0x477):util.cpp: undefined reference to `now_cpu()'
>util.o(.text+0x49c):util.cpp: undefined reference to `now_real()'
>util.o(.text+0x4a9):util.cpp: undefined reference to `now_cpu()'
>util.o(.text+0x504):util.cpp: undefined reference to `now_real()'
>util.o(.text+0x554):util.cpp: undefined reference to `now_cpu()'
>util.o(.text+0x5f6):util.cpp: undefined reference to `now_cpu()'
>util.o(.text+0x609):util.cpp: undefined reference to `now_real()'
>protocol.o(.text+0x6a):protocol.cpp: undefined reference to `input_available()'
>
>I downloaded the source from here:
>
>http://wbec-ridderkerk.nl/html/download/fruit/fruit_20upd.rar
>
>Joshua Haglund
>toneewa@yahoo.com

The linker missing the function now_real() in the ojectfiles.
just do a `grep -i "now_real()" *` to see if this function exist.
If not, the source is incomplete.
If grep show you a file just add this file to the makefile.

But of course there are much more possibilities.

daniel



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.