[C++-sig] boost.python not working in Visual Studio 2005?

Grant grant.tang at gmail.com
Tue Jun 10 17:34:46 CEST 2008


"Nat Goodspeed" <nat at lindenlab.com> wrote in message 
news:484DC4F6.4000602 at lindenlab.com...
> Grant wrote:
>
>> The compilation goes OK, but I can not import any library into python. 
>> The Python interpreter just complian no such library file exist. I check 
>> the path should be fine.
>>
>> I checked my dll library and the python library, I notice the python2.5 
>> library is compiled with VS2003, since it linked to VS2003 runtime. Could 
>> that be the problem? Should I compile Python 2.5.2 from source with 
>> VS2005?
>
> Did you just change to Python 2.5? You said you're building a .dll 
> library? Try renaming that to .pyd. See the last item on this page:
> http://docs.python.org/whatsnew/ports.html#SECTION0001510000000000000000
>
> If Python finds the extension module but detects a version mismatch, you 
> usually get a different error.

Thank you Nat. This solves my problem.

Grant 






More information about the Cplusplus-sig mailing list