This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem with exceptions and shared libs


Hi.

I'm having trouble using exceptions with dynamically linked
libraries and I'm wondering if I'm doing something wrong or
if this case just isn't supported yet.

Specifically the simplest use of throwing an exception from
a dynamically linked library causes an application to
simply Abort with a core dump.

The specifics of my system are, a Redhat 5.1 system
with binutils version 2.9.1, egcs 1.1b. 'as' reports
itself as version 2.9.1 using BFD 2.9.1.0.4. I only
compile using the '-g -O2' flags and link using
'-shared'.

So... are exceptions supposed to work with shared libraries?
If so can someone give me a hint what I might be doing wrong?

Sorry if this has been asked before but I searched the archives
a bit and nothing jumped out at me.

Thanks for any help.
-- 
Gerald Gryschuk
gerald.gryschuk@home.com
MidNightOil Consulting - "We burn the midnight oil so you don't have
to."


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]