Try the following:
$gcc -o hello hello.m -I /GNUstep/System/Library/Headers -L /GNUstep/System/Library/Libraries -lobjc -lgnustep-base -fconstant-string-class=NSConstantString
Note
-fconstant-string-class=NSConstantString
without this command, it treats persistent string objects as a type of the NXConstantString class.
For start:
$./hello.m or whatever your objective-c code file name.
source share