Thanks for the response. Finally I got it work for me. The trick is to generate a "libpython25.a" file using pexports and dlltool (as described in many pages, e.g. above "this very painful method" link, step 2.). Or, this file can be downloaded from this link libpython25.a directly. By doing that, both cygwin and mingw ways work for me.
I have an impression that the requirement of "libpython2x.a" is not needed for new version of MinGW and python25. Is that the case for you two, Frank and Enrico? But apparently it does not work for me.
OK, finally, this is the list of everything I am using:
ActivePython 2.5.1
MinGW [installed using MinGW-5.1.3.exe, with gcc (GCC) 3.4.5 (mingw special) and GNU ld version 2.17.50 20060824]
cygwin/gcc-mingw [gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) and GNU ld version 2.17.50 20060817]
linking to python25 works for me now
I have an impression that the requirement of "libpython2x.a" is not needed for new version of MinGW and python25. Is that the case for you two, Frank and Enrico? But apparently it does not work for me.
OK, finally, this is the list of everything I am using:
- ActivePython 2.5.1
- MinGW [installed using MinGW-5.1.3.exe, with gcc (GCC) 3.4.5 (mingw special) and GNU ld version 2.17.50 20060824]
- cygwin/gcc-mingw [gcc (GCC) 3.4.4 (cygming special, gdc 0.12, using dmd 0.125) and GNU ld version 2.17.50 20060817]
- pexports v0.43
Thanks you all.