Re: C++ global constructors in xsub?
- From: Reinhard Pagitsch <rprp@xxxxxxx>
- Date: Thu, 12 May 2005 08:58:59 +0200
usenet.zaa.jabberwock@xxxxxxxxxxxx wrote:
Thanks for your reply. However, I'm not sure if your example requires global constructors (I'm not well experienced with C++, so I'm not exactly sure what constructs require this; static members maybe?). What I'm referring to by "global constructors" is code that gets run by __do_global_ctors() when the program starts up.
Sorry, but what is __do_global_ctors()? Is this a Perl function? Or does this function call a constructor of the C++ class?
Can you post some code snippet? I do not understand what you actually want to do. But try to ask in perl.xs (nntp.perl.org) the people in this group a very expirenced.
The library I'm writing the xsub for is a 3rd party library, so I don't have access to the souce or anything. However, I'm pretty sure this is the problem. It works fine with LINKTYPE=static, and in the debugger I can actually see it call the library from __do_global_ctors(). With a dynamic build, it first calls the library when I call one of the xsub functions, and dies with a bus error or memory error.
regards, Reinhard .
- Follow-Ups:
- Re: C++ global constructors in xsub?
- From: usenet . zaa . jabberwock
- Re: C++ global constructors in xsub?
- References:
- C++ global constructors in xsub?
- From: usenet . zaa . jabberwock
- Re: C++ global constructors in xsub?
- From: Reinhard Pagitsch
- Re: C++ global constructors in xsub?
- From: usenet . zaa . jabberwock
- C++ global constructors in xsub?
- Prev by Date: ANNOUNCEMENT: Compress::Bzip2 2.08
- Next by Date: Is there a module to help me to send/receive msg and file with MSN message?
- Previous by thread: Re: C++ global constructors in xsub?
- Next by thread: Re: C++ global constructors in xsub?
- Index(es):
Relevant Pages
|
|