473,657 Members | 2,507 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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
Jul 18 '05 #1
2 5016
Try to compile with

g++ -fno-rtti

Manuel
Jul 18 '05 #2
I don't know why
jo****@mail2wor ld.com (Jesper Olsen) wrote in message news:<6b******* *************** ****@posting.go ogle.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__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


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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
1839
by: Atul Kshirsagar | last post by:
I am embedding python in my C++ application. I am using Python *2.3.2* with a C++ extention DLL in multi-threaded environment. I am using SWIG-1.3.19 to generate C++ to Python interface. Now to explain it in details, 1. Python initialization and finalization is done in the *main* thread. 2. For each new thread I create a separate sub-interpreter . 3. Using PyRun_String("import myModule"...) before execution of python
1
2595
by: Carl Ogawa | last post by:
How do I make .cgi extention work? I installed ActivePerl 5.8. My CGI scripts work fine with .PL extention but not .CGI extention although I associated CGI extention as exactly same as PL extention in WinXP Prof . Where else should I change to make it work?
1
3077
by: MFA | last post by:
Hi all I have installed Front page server Extention on IIS 5.0 it was working fine. I was able to load project from Visual Interdav and doing well. Yesterday I installed a security update from Microsoft and after that every thing stop working and I am getting the error below when ever I am trying to connect to server using V Interdev. Error Shows that FP Server Extention is not installed but its there even I removed it and installed it...
3
1781
by: Tuvas | last post by:
I am currently writing an extention module that needs to recieve a list of characters that might vary in size from 0 to 8. This is written as a list of characters rather than a string because it's easier to manipulate. However, when I pass this list of characters into the extention module, it keeps giving errors. Is there a way to do one of the following? A. Change a list of chars to a single string or B. Read a list of chars in an...
8
1464
by: Tuvas | last post by:
I am in the process of writing an extention module, and am coming up with lots of problems. Perhaps someone could be of use. I keep getting data that isn't what I'm sending the program. Let me give the line of C code and Python Code and output to illistrate the problem. write_can(can_han,0x0140,'abcd') if (PyArg_ParseTuple(args("iiz#",&can_han,&com,&data,&len) return NULL;
1
1645
by: godfather96 | last post by:
I am using a web control called eXml which is an extention to ms xml web control which supports xslt 2.0 when trying to group elements i receive the following error: group-by is not a valid extention element is there a namespace or something a need to add. my source is below
5
3130
by: Krustov | last post by:
I have the following list of image files . When searching the latest (numbered file) in this particular case its background_4.*** and its a .jpg file - but - the latest file in the list could also be a .gif file at times . zimages_background/background_1.jpg zimages_background/background_2.jpg zimages_background/background_3.gif zimages_background/background_4.jpg
10
1529
by: shaiful | last post by:
Hi all I have a problem with extention of file. such as: Dim s, s1 As String s = "Test.doc" i want get the value of s is in s1 as "Test.txt" such as : s1 = "Test.txt" so, how i can get that solution in easy way pls? Is there any bulit in function to saperate a string by any special char such as (.) dot, or change the extention only? thx advance
4
1262
by: =?Utf-8?B?WWFua2VlIEltcGVyaWFsaXN0IERvZw==?= | last post by:
I'm do meore and more with extention methods, totally cool. They are making life much easier for IU developers. I'm trying to add a return type of struct to a asp.net DropDownList of type struct. The idea is that if the conversion to say Int32 failed and a default value was used i can also return a Pass/Fail bool, int code to let the developer know that it failed or the reason for the failure. Where should the struse be defined for the...
0
8305
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8732
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8605
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6163
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4151
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4302
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1953
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1611
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.