Exceptions across shared libraries (gcc 3.3.3)

Discussion in 'C++' started by gilles.rayrat@gmail.com, Aug 18, 2006.

  1. Guest

    Hi,
    I am facing a weird issue:
    We are using a shared library (libcarob) that can throw exceptions.
    Everything goes well under most platforms, but under suse (SLES 9, gcc
    3.3.3), we get a segfault anytime we try to throw an exception out of
    carob.
    The weird thing is that when linking statically carob to the libstdc++,

    the problem disappears. Google showed nothing convincing, so I try
    other
    channels...
    If anyone has a clue for it, g++ flags or whatever, I am ready to try
    the hell to fix this
    Thanks,
    Gilles.
    , Aug 18, 2006
    #1
    1. Advertising

  2. mlimber Guest

    wrote:
    > Hi,
    > I am facing a weird issue:
    > We are using a shared library (libcarob) that can throw exceptions.
    > Everything goes well under most platforms, but under suse (SLES 9, gcc
    > 3.3.3), we get a segfault anytime we try to throw an exception out of
    > carob.
    > The weird thing is that when linking statically carob to the libstdc++,
    >
    > the problem disappears. Google showed nothing convincing, so I try
    > other
    > channels...
    > If anyone has a clue for it, g++ flags or whatever, I am ready to try
    > the hell to fix this


    You'll want to post in a group for g++ and/or your troublesome
    platform. Standard C++ knows nothing of static vs. dynamic linking, so
    that is off-topic here
    (http://www.parashift.com/c -faq-lite/how-to-post.html#faq-5.9).

    Cheers! --M
    mlimber, Aug 18, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?U3JpZGhhcg==?=

    catching exceptions across dlls

    =?Utf-8?B?U3JpZGhhcg==?=, Apr 27, 2006, in forum: ASP .Net
    Replies:
    1
    Views:
    413
    Karl Seguin [MVP]
    Apr 27, 2006
  2. foxx
    Replies:
    4
    Views:
    440
  3. Nindi
    Replies:
    4
    Views:
    422
    Gianni Mariani
    Dec 23, 2006
  4. guddu
    Replies:
    0
    Views:
    266
    guddu
    Jun 24, 2008
  5. guddu

    share a variable across two libraries

    guddu, Jun 24, 2008, in forum: C Programming
    Replies:
    1
    Views:
    225
    rahul
    Jun 25, 2008
Loading...

Share This Page