Re: Problem with gcc-2.96 and uncaught exceptions

John <[email protected]>
Newsgroups gmane.linux.redhat.devel
Message-ID <Pine.LNX.4.44.0305010611580.3444-100000@gw.computerdatasafe.com.au>
On Wed, 30 Apr 2003, Rajesh Radhakrishnan wrote:

> Hi,
> 
> I work on Redhat 7.3. I have a C program compiled with
> gcc and strip'ed to remove all symbols, dynamically
> loads using 'dlopen', a large C++ shared library.
> 
> The shared library has a parser that throws an
> exception when it sees a parser error. The exception
> doesn't get caught in the C++ shared library code and
> the entire program crashes.
> 
> A small program of a C program dlopen'ing a C++ shared
> library works fine but in the large it fails. GDB is
> of no help, as the call stack is hosed and gives me
> the run around.
> 
> Any suggestions with regards to any compile options in
> need to compile the C program and the C++ shared
> library so that the exceptions get caught in the C++
> code?
> 
> Thanks for your help.

Why not use C++ to employ a C library? Seems to me it should work more
cleanly.


-- 
Please, reply only to the list.

Join the "Linux Support by Small Businesses" list at
http://mail.computerdatasafe.com.au/mailman/listinfo/lssb
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.