开发者

gcc -fvisibility problem

开发者 https://www.devze.com 2022-12-22 18:08 出处:网络
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 ad

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 de开发者_StackOverflowclaration:

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.


For future reference: this was not visibility problem. I got an answer here: Exceptions are not caught in GCC program

0

精彩评论

暂无评论...
验证码 换一张
取 消