Boost logo

Boost Users :

Subject: Re: [Boost-users] [python] Problem detecting python
From: Sahasranaman MS (sahasr_at_[hidden])
Date: 2009-09-01 03:20:42


On Mon, Aug 31, 2009 at 6:22 PM, Philippe Fremy <phil_at_[hidden]>wrote:

>
> Could someone give me a hint on how to compile boost.python with mingw
> or tell me if it's impossible ?
>
>
It is definitely possible. For linking with the Python Runtime library,
you'll need a mingw compatible libpython25.a file. Since the Python you've
installed is compiled using MSVC, it will have only the MSVC .lib library
file. So you need to create your own libpython25.a file and link to it, and
it would work. Look at the step 2 here:
http://sebsauvage.net/python/mingw.html to see how to make your own .a file.
The page is slightly outdated, but the procedure remains the same. Just make
the required changes in the file names.

Hope this helps.



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net