Re: Need help with loading .SO file
- From: "Donal K. Fellows" <donal.k.fellows@xxxxxxxxx>
- Date: 30 Aug 2006 01:00:30 -0700
Tobias Hippler wrote:
Otherwise the symbols of your *.so get mangled (c++ - style) and the
runtime loader can't find the symbol "Proc_Init".
BTW if you don't have to use C++, you can simply rename your file to
"Proc.c". This way the C compiler is used and no name mangling occurrs.
Strictly, the C compiler does name mangling too, but the mangling it
does is really very simple; it just puts an underline in front. In the
case of C++ though, things are more horrible since the type of the
function is encoded in the mangled name and IIRC not all compilers use
the same method for doing this. This is why Tcl doesn't try to figure
it out, and since C linkage is perfectly adequate for this and has to
be supported by the compiler anyway, there's no incentive to change.
:-)
Donal.
.
- References:
- Need help with loading .SO file
- From: ShurikAg
- Re: Need help with loading .SO file
- From: Tobias Hippler
- Need help with loading .SO file
- Prev by Date: Re: Package Requires CSV?
- Next by Date: Re: RESOLVED Re: Channel never readable, where should I look?
- Previous by thread: Re: Need help with loading .SO file
- Next by thread: Re: Need help with loading .SO file
- Index(es):
Relevant Pages
|