mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 08:26:27 +00:00
Attempt at more helpful error message.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@34959 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
fd60798730
commit
4f81bfd607
2 changed files with 12 additions and 1 deletions
|
@ -1,3 +1,9 @@
|
|||
2012-03-20 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* Headers/Foundation/NSException.h:
|
||||
Try to make error message more helpful when building with incompatible
|
||||
exception handling settings.
|
||||
|
||||
2012-03-18 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSXMLDTDNode.m: Correct node type, at least for entity nodes.
|
||||
|
|
|
@ -39,7 +39,12 @@
|
|||
#define USER_NATIVE_OBJC_EXCEPTIONS 0
|
||||
#endif
|
||||
#if !BASE_NATIVE_OBJC_EXCEPTIONS && USER_NATIVE_OBJC_EXCEPTIONS
|
||||
#error The current setting for native-objc-exceptions does not match that of gnustep-base ... please correct this.
|
||||
#error There are two separate exception handling mechanisms available ... one based on the standard setjmp() function (which does not require special compiler support), and one 'native' version where the compiler manages the exception handling. If you try to use both in the same executable, exception handlers won't work... which can be pretty disastrous. This error is telling you that the gnustep-base library was built using one form of exception handling, but that the gnustep-make package you are using is building code to use the other form of exception handling ... with the consequence that exception handling would be broken in the program you are building. So, somehow your gnustep-base and gnustep-make package are incompatible, and you need to replace one of them with a version configured to match the other.
|
||||
#if BASE_NATIVE_OBJC_EXCEPTIONS
|
||||
#error gnustep-base is configured to use 'native' exceptions, but you are building for 'traditional' exceptions.
|
||||
#else
|
||||
#error gnustep-base is configured to use 'traditional' exceptions, but you are building for 'native' exceptions.
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#import <Foundation/NSString.h>
|
||||
|
|
Loading…
Reference in a new issue