-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Exception issues on OSX #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm not seeing this issue with the default settings:
This is with the latest development version and the compiler version:
On OSX we only support clang, are you trying to build with gcc? |
I'm using the Apple LLVM 6.1 compiler. The only difference I can see is that I'm using XCode IDE while you are using the Terminal. $ c++ --version |
Could you try the command line approach and see if you're getting the same behavior that I see? If so, then we can narrow it down to XCode being the problem. |
Found out issue is caused by "Symbols Hidden By Default" being set to YES in Release. Setting it to NO solves the problem. |
Thanks for posting the resolution 👍 |
CPPRest compiled on OSX exhibits a problem catching exceptions properly :
Following code displays "std::exception caught" on OSX. This really should display "json::json_exception caught", instead. I suspect this is caused by known Apple GCC issue when shared libraries are not built using RTTI. See following StackOverflow article :
Polymorphically catching an exception in a -fno-rtti shared library on Mac OS X
(CPPRest 2.6.0, OSX Yosemite, XCode 6.4)
CPPRest issue repro.zip
The text was updated successfully, but these errors were encountered: