[C++-sig] boost.python import problem

Junwei Zhang junweizhang2006 at gmail.com
Mon Aug 30 20:03:02 CEST 2010


Thanks you all

it works

On Mon, Aug 30, 2010 at 12:23 PM, Jim Bosch <talljimbo at gmail.com> wrote:
> On 08/30/2010 10:19 AM, Junwei Zhang wrote:
>>
>> Hi, everyone,
>>
>> I just started study boost.python. and have following problem
>
> <snip>
>>
>> g++ boostpy.cc  -lpython2.5 -I /usr/include/python2.5 -o boostpy.so
>> -shared
>>
> <snip>
>>
>> any suggestion?
>>
>
> Two compiler/linker flags: -fPIC and -lboost_python
>
> You may have to append a suffix to get the appropriate boost_python shared
> library in some cases.
>
> Jim Bosch
> _______________________________________________
> Cplusplus-sig mailing list
> Cplusplus-sig at python.org
> http://mail.python.org/mailman/listinfo/cplusplus-sig
>



-- 
Junwei Zhang
Office Phone:402-472-1968
junweizhang2006 at gmail.com
www.junweizhang.com
Department of Electrical Engineering
University of Nebraska-Lincoln
209N Walter Scott Engineering Center
P.O. Box 880511
Lincoln, NE 68588-0511


More information about the Cplusplus-sig mailing list