[C++-sig] Can't import boost_python module in Mac OS X

David Abrahams dave at boost-consulting.com
Tue Sep 11 17:06:46 CEST 2007


on Tue Sep 11 2007, Greg Smolyn <greg-AT-smolyn.org> wrote:

> Does anyone have _any_ ideas?  I'm stumped, I've tried everything!  
> What's weird is this works absolutely 
> fine in Linux.

My wild guess is that something on OSX  is doing 

  #define string wstring

You might try running your extension module through the preprocessor
to see what's happening.


Really, the only way to debug this is to run gdb on python itself and
set a breakpoint in the function that is used to throw exceptions, so
you can see what it's actually complaining about.

-- 
Dave Abrahams
Boost Consulting
http://www.boost-consulting.com

The Astoria Seminar ==> http://www.astoriaseminar.com




More information about the Cplusplus-sig mailing list