discuss-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Crash occurs when catching std::exception in Objective-C++ code comp


From: Richard Frith-Macdonald
Subject: Re: Crash occurs when catching std::exception in Objective-C++ code compiled with clang on Linux and using libobjc2
Date: Wed, 29 Nov 2017 10:30:19 +0000


> On 28 Nov 2017, at 21:38, Lobron, David <dlobron@akamai.com> wrote:
> 
> Hey All-
> 
> I've been continuing to dig into the phenomenon of code crashing when 
> catching a C++ exception in a .mm file.  I'm finding that even though my test 
> passes when it's included in the libobjc2 test bundle, it fails when I 
> compile it from the command line.  I narrowed down the compilation command, 
> and found that the seg fault stops happening if I remove -fgnu-runtime from 
> the compile command (I've copied the commands and the program below).
> 
> Should I not be compiling with -fgnu-runtime when I'm using the libobjc2 
> runtime?

The -fgnu-runtime is for using the runtime that comes with the GNU compiler 
(gcc).  You definitely don't want it if you are using the objc2 runtime.
Are you configuring/building gnustep to use the new features (ie configuring 
gnustep-make --with-library-combo=ng-gnu-gnu) ?
If configured to use new features (ie runtime is 'ng' rather than 'apple' or 
'gnu')  the make system should not be adding  -fgnu-runtime


reply via email to

[Prev in Thread] Current Thread [Next in Thread]