469,312 Members | 2,524 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,312 developers. It's quick & easy.

C++ extention

I have a python extention implemented in C/C++
- the extention itself is internally implemented in C++, but
the interface is pure C, so that it can easily be called from
a python C-wrapper.

The extention is compiled with distutils, and this has worked
well in both Windows and Linux environments.

Now, however, I get an

undefined symbol _ZTVN10__cxxabiv117__class_type_infoE

when I try to import the extention on Linux (only linux).

I think this has happened after gcc was upgraded to gcc 3.2.2

Has anyone seen this? What could be the problem?

Jesper
Jul 18 '05 #1
2 4672
Try to compile with

g++ -fno-rtti

Manuel
Jul 18 '05 #2
I don't know why
jo****@mail2world.com (Jesper Olsen) wrote in message news:<6b**************************@posting.google. com>...
I have a python extention implemented in C/C++
- the extention itself is internally implemented in C++, but
the interface is pure C, so that it can easily be called from
a python C-wrapper.

The extention is compiled with distutils, and this has worked
well in both Windows and Linux environments.

Now, however, I get an

undefined symbol _ZTVN10__cxxabiv117__class_type_infoE

when I try to import the extention on Linux (only linux).

I think this has happened after gcc was upgraded to gcc 3.2.2

Has anyone seen this? What could be the problem?

Jesper


I don't know why this tedious problem has cropped up with the new
gcc - but anyway I have fixed it now by "manually" forcing it to
choose g++ as the linker - on linux platforms.
It would be nice if distutils could take care of this itself...

Jesper
Jul 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Carl Ogawa | last post: by
3 posts views Thread by Tuvas | last post: by
8 posts views Thread by Tuvas | last post: by
5 posts views Thread by Krustov | last post: by
4 posts views Thread by =?Utf-8?B?WWFua2VlIEltcGVyaWFsaXN0IERvZw==?= | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.