Loic,

I haven't really coded in neither C nor under Unix so I'm having a
hard time as well.

The first command that fails when running make is the following:
cc -shared -L../lib -lpoker -o ../lib/libpokerjni.so
org/pokersource/eval/StandardEvalImp.o
org/pokersource/eval/JokerEvalImp.o
org/pokersource/eval/AsianStudEvalImp.o
org/pokersource/enumerate/EnumerateImp.o jniutil.o pokutil.o

that's run in /cygdrive/c/poker-eval-src-121/java

The first error it outputs is:
org/pokersource/eval/StandardEvalImp.o:StandardEvalImp.c:(.text+0xdf):
undefined  reference to `_nBitsTable'

The poker library is there and the symbol that it cannot find is
defined there:
bash-3.2$ pwd
/cygdrive/c/poker-eval-src-121/lib
bash-3.2$ ls -la libpoker.a
-rw-rw-rw- 1 Janis None 1194338 Dec  5 16:28 libpoker.a
bash-3.2$ nm libpoker.a | grep nBitsTable
00000000 D _nBitsTable
         U _nBitsTable

It does find the library as when I delete it I get:
/usr/lib/gcc/i686-pc-cygwin/3.4.4/../../../../i686-pc-cygwin/bin/ld:
cannot find
 -lpoker

That's the situation with version 121; if I use the latest version
from CVS and combine it with the 133 version (because autoconf fails
on autoconf.ac on my system) I eventually get the same error:
cc -shared -L../lib -lpoker-eval -o ../lib/libpokerjni.so
org/pokersource/eval/StandardEvalImp.o
org/pokersource/eval/JokerEvalImp.o
org/pokersource/eval/AsianStudEvalImp.o
org/pokersource/enu/EnumerateImp.o jniutil.o pokutil.o
org/pokersource/eval/StandardEvalImp.o:StandardEvalImp.c:(.text+0xd8):
undefined  reference to `_nBitsTable'

Any ideas whatsoever?

Best regards,
Janis.
Quoting Loic Dachary :

    Janis Nazitis writes:

        The source I'm trying to compile is
       
http://download.gna.org/pokersource/sources/poker-eval-src-121.tar.gz
        (the newer versions don't seem to include the Java files).
    Not being a windows user or a java user, I can't really help you.
However, if you figure out the solution I'm willing to integrate it in
    the next poker-eval release, together with the java files. The
only reason
    why the java interface is not included is because some files are
distributed
    under a license that's incompatible with he GNU GPL.
_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users

Reply via email to