In Compile Objective-C Programs using gcc
, the following exists
Also note that if you did not specify -D_NATIVE_OBJC_EXCEPTIONS, you may encounter the following error:
/usr/include/GNUstep/Foundation/NSException.h:42:2: error:
current setting for native-objc-exceptions does not match that of
gnustep-base ... please correct this.
, , -D_NATIVE_OBJC_EXCEPTIONS .
- , .
, shalki . , , ,
, ,
Objective-C Linux
- , , , ,
`gnustep-config --objc-flags`
gcc.
gcc `gnustep-config --objc-flags` hello.m -o hello -I /usr/include/GNUstep/ -L /usr/lib/GNUstep/ -lgnustep-base
. gnustep-config --objc-flags
-MMD -MP -DGNUSTEP -DGNUSTEP_BASE_LIBRARY=1 -DGNU_GUI_LIBRARY=1 -DGNU_RUNTIME=1 -DGNUSTEP_BASE_LIBRARY=1 -D_REENTRANT -fPIC -Wall -DGSWARN -DGSDIAGNOSE -Wno-import -g -O2 -fno-strict-aliasing -fexceptions -fobjc-exceptions -D_NATIVE_OBJC_EXCEPTIONS -fgnu-runtime -fconstant-string-class=NSConstantString -I. -I/home/faheem/GNUstep/Library/Headers -I/usr/local/include/GNUstep -I/usr/include/GNUstep
Yowza. , -D_NATIVE_OBJC_EXCEPTIONS, . Debian. Debian/Ubuntu. .