有一个适用于Linux的lib源代码和make脚本。 http://svn.gna.org/svn/pokersource/branches/poker-eval-java/。 我需要为Windows构建它。它应该是两个dll文件。主要的dll和第二个dll是jni-wrapper,用于从Java调用本地函数。 我已经使用以下命令在Linux下构建了它:
autoreconf --install
./configure --enable-java
make
它已经成功构建并运行良好。但现在我需要将其适配到Windows系统。 我已经使用GUI安装程序安装了MinGW,并将mingw \ bin添加到我的PATH中。 我运行相同的命令,但在make时出现错误:
mv -f .deps/libpoker_eval_la-deck_std.Tpo .deps/libpoker_eval_la-deck_std.Plo
/bin/sh ../libtool --tag=CC --mode=compile gcc -DHAVE_CONFIG_H -I. -I../inclu
de -I../include -Wall -Wpointer-arith -Wstrict-prototypes -g -O2 -MT libpoker_
eval_la-enumerate.lo -MD -MP -MF .deps/libpoker_eval_la-enumerate.Tpo -c -o libp
oker_eval_la-enumerate.lo `test -f 'enumerate.c' || echo './'`enumerate.c
libtool: compile: gcc -DHAVE_CONFIG_H -I. -I../include -I../include -Wall -Wpoi
nter-arith -Wstrict-prototypes -g -O2 -MT libpoker_eval_la-enumerate.lo -MD -MP
-MF .deps/libpoker_eval_la-enumerate.Tpo -c enumerate.c -DDLL_EXPORT -DPIC -o .
libs/libpoker_eval_la-enumerate.o
enumerate.c: In function 'enumExhaustive':
enumerate.c:415:5: error: 'intptr_t' undeclared (first use in this function)
enumerate.c:415:5: note: each undeclared identifier is reported only once for ea
ch function it appears in
make[1]: *** [libpoker_eval_la-enumerate.lo] Error 1
make[1]: Leaving directory `/drive/eval/lib'
make: *** [all-recursive] Error 1
完整的控制台日志在这里 http://dl.dropbox.com/u/12053587/mylog.txt
你能帮我解决这个问题吗? 谢谢