C++ extention

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Jesper Olsen

    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__cxxabi v117__class_typ e_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
  • Manuel Huesser

    #2
    Re: C++ extention

    Try to compile with

    g++ -fno-rtti

    Manuel

    Comment

    • Jesper Olsen

      #3
      Re: C++ extention

      I don't know why
      jolsen@mail2wor ld.com (Jesper Olsen) wrote in message news:<6b17fa95. 0311180136.723d 51b2@posting.go ogle.com>...[color=blue]
      > 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__cxxabi v117__class_typ e_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[/color]

      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

      Comment

      Working...