This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: building a .so with G++ on Linux, restated
- To: "gcchelp" <gcc-help at gcc dot gnu dot org>
- Subject: RE: building a .so with G++ on Linux, restated
- From: "John Green" <johnallengreen at yahoo dot com>
- Date: Sat, 3 Nov 2001 15:30:44 +1000
- Cc: <frank dot schafer at setuza dot cz>
Great book! Thank you for the reference. I just finished reading a number of
sections from it. Unfortunately, it looks like I'm doing things correctly.
:-(
Another (probably better) description of the problems I'm having: My C++ .so
built with G++ /does/ work well, but only when called via a C++ program
built with the same version of G++ (3.0.2). If I try to call the .so with C,
Java, or different versions of G++, then only the trivial function calls
work. When the more complex functions are used (those that use & catch
exceptions, use iostreams, use STL, etc), then I start seeing problems like
"Aborted" and core dump. (Yes, all exceptions are caught within the .so.)
Are there, perhaps, any references about building a C++ .so with G++ on
Linux, such that the .so can reliably be called from C, Java, etc?
Thanks,
John
> -----Original Message-----
> From: p10209@linux.setuza.cz [mailto:p10209@linux.setuza.cz]On Behalf Of
> Frank Schafer
> Sent: Saturday, November 03, 2001 12:38 AM
> To: John Green
> Cc: gcchelp
> Subject: Re: building a .so with G++ on Linux
>
> Hi,
>
> Have a look at:
>
> http://sources.redhat.com/autobook/autobook/autobook_toc.html
>
> ( the section about libtool ).
> It could be also of some help to look at ``info libtool''.
>
> Hope this helps
> Frank
>
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com