Re: C++ global constructors in xsub?
- From: usenet.zaa.jabberwock@xxxxxxxxxxxx
- Date: 11 May 2005 09:21:14 -0700
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.
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.
--
JAB
.
- Follow-Ups:
- Re: C++ global constructors in xsub?
- From: Steven N. Hirsch
- Re: C++ global constructors in xsub?
- From: Reinhard Pagitsch
- 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
- C++ global constructors in xsub?
- Prev by Date: Tie::Persistent issues
- Next by Date: Curses::Widgets::Menu Question
- Previous by thread: Re: C++ global constructors in xsub?
- Next by thread: Re: C++ global constructors in xsub?
- Index(es):
Relevant Pages
|
|