views:

23

answers:

1

I have the problem described here:

http://gcc.gnu.org/wiki/Visibility

Exception class exported from shared library cannot be caught when used outside of the library, and the program terminates. I added __attribute__((visibility("default"))) to the class declaration:

class  __attribute__((visibility("default"))) MyException
{
    ...
};

But this doesn't help. Client executable does not catch this exception. gcc version is 4.4.1, used in the Linux OS.

A: 

For future reference: this was not visibility problem. I got an answer here: http://stackoverflow.com/questions/2424836/exceptions-are-not-caught-in-gcc-program

Alex Farber