Python wrapper for C++

"Martin v. Löwis" martin at v.loewis.de
Sat May 3 09:43:44 EDT 2003


hitectahir wrote:

> But initially i had the
> problem that distutilsinvoked gcc for compilation which resulted in
> Python giving the error:
> 
> undefined symbol: cerr

This goes away if you have distutils use g++ instead of gcc for linking.

> So I manually executed out the same commands using g++ instead of gcc.
> But this time on importing I got the error message:
> 
> undefined symbol: ObjectAlloc__8TStorageUi

You probably need to link a library.

> Then i found that i could use the other tool Boost.python. It worked
> ok with simple C++ programs (as did CXX for that matter), but for this
> particular program, again on trying to import in Python, i got the
> message:
> 
> undefined symbol: DoErr.....

What was the specific error message?

> Can anyone help me out on this and point me out as to how these errors
> may be removed?

It depends on the precise error. Undefined symbols are typically 
provided by passing additional libraries to the linker.

Regards,
Martin





More information about the Python-list mailing list