Hi,
thanks for your email.

I tried commenting out the 2 lines you mention in the ccpython.m4  file and
then ran configure and make again, but when I run make I still get the
errors due to undefined references.

.libs/_pokereval_2_3_la-pypokereval.o:pypokereval.c:(.text+0x3e83):
undefined reference to `__imp__PyList_Type'
.libs/_pokereval_2_3_la-pypokereval.o:pypokereval.c:(.text+0x3e93):
undefined reference to `_PyType_IsSubtype'
.libs/_pokereval_2_3_la-pypokereval.o:pypokereval.c:(.text+0x3ea6):
undefined reference to `_PyList_Size'

...etc

Then I tried taking the last gcc compilation line before the errors and
added the link flag -lpython2.5 like this, and I run just this command:

$ gcc -shared  .libs/_pokereval_2_3_la-pypokereval.o
-lpython2.5-L/usr/local/lib /usr/local/lib/libpoker-
eval.dll.a  -o .libs/_pokereval_2_3-1.dll -Wl,--enable-auto-image-base
-Xlinker --out-implib -Xlinker .libs/_pokereval_2_3.dll.a

and then I get the following output, the references seem to get resolved:

Info: resolving _nBitsTable by linking to __imp__nBitsTable (auto-import)
Info: resolving _straightTable by linking to __imp__straightTable
(auto-import)
Info: resolving _topFiveCardsTable by linking to __imp__topFiveCardsTable
(auto-import)
Info: resolving _topCardTable by linking to __imp__topCardTable
(auto-import)
Info: resolving _StdDeck_cardMasksTable by linking to
__imp__StdDeck_cardMasksTable (auto-import)
Info: resolving _bottomFiveCardsTable by linking to
__imp__bottomFiveCardsTable (auto-import)
Info: resolving _bottomCardTable by linking to __imp__bottomCardTable
(auto-import)
Info: resolving _StdDeck by linking to __imp__StdDeck (auto-import)
Info: resolving _StdRules_handTypeNames by linking to
__imp__StdRules_handTypeNames (auto-import)
Info: resolving _StdRules_nSigCards by linking to __imp__StdRules_nSigCards
(auto-import)
Creating library file: .libs/_pokereval_2_3.dll.a

But I 'm not sure if this really solves the whole problem, and how to change
the configure file so that the flag is added automatically.
Thanks a lot.






On 7/24/07, Loic Dachary <[EMAIL PROTECTED]> wrote:

"bar tomas" <[EMAIL PROTECTED]> writes:

>    -L/usr/lib/python2.5/config

     It looks good. We migh be able to remove the cygwin hack that was
necessary in the past. What happens if you just comment out

      cygwin* | mingw*)
            am_cv_python]$2[_linkflags='-lpython2.4' ;;

      in the config/ccpython.m4 file ?

      Hopefully it will work. If it does, I'd be very gratefull if you
could
try with a python2.4 installed also.

      Cheers,

--
+33 1 76 60 72 81  Loic Dachary mailto:[EMAIL PROTECTED]
http://dachary.org/loic/gpg.txt sip:[EMAIL PROTECTED]
Latitude: 48.86962325498033 Longitude: 2.3623046278953552

_______________________________________________
Pokersource-users mailing list
[email protected]
https://mail.gna.org/listinfo/pokersource-users

Reply via email to