Am 16.02.2014 um 17:57 schrieb "Vishnampet Ganapathi Subramanian, Ramanathan" 
<vishn...@illinois.edu>:

> Hello,
> 
> This is my first patch submission to any project, so please ignore if it 
> appears to be irrelevant!
> 
> I compiled the 2.1.0beta2 branch using g++-4.8 on my MacBook Pro:
> 
> lyx/build $ cmake ../ -DCMAKE_CXX_COMPILER=/usr/local/bin/g++-4.8 
> -DCMAKE_C_COMPILER=/usr/local/bin/gcc-4.8
> lyx/src/support/linkback/LinkBackProxy.m:64:7: error: '-fobjc-exceptions' is 
> required to enable Objective-C exception syntax
>  @try {
>       ^
> make[2]: *** [src/support/CMakeFiles/support.dir/linkback/LinkBackProxy.m.o] 
> Error 1
> make[1]: *** [src/support/CMakeFiles/support.dir/all] Error 2
> make: *** [all] Error 2
> 
> g++ expects the flag -fobjc-exceptions which "enables syntactic support for 
> structured exception handling in Objective-C”.
> 
> I propose the attached patch, which fixes this by adding the 
> -fobjc-exceptions compile flag for the relevant source files when 
> CMAKE_COMPILER_IS_GNUCXX.

Hello,

I'm not using g++-4.8 and cmake.

I tried your patch and it doesn't harm clang builds.  So, I can to apply it for 
you.

But, please send a short statement like the following to 
lyx-devel@lists.lyx.org:

-------
I hereby grant permission to license my contributions to LyX under the
Gnu General Public Licence, version 2 or later.

<your name>
-------

Best regards,
Stephan

Reply via email to