I finally got GNUstep working (on windows), and it compiles and runs fine. However, whenever I try to use NSLog, I get the following error:
$ gcc -o hello hello.m -I /GNUstep/System/Library/Headers \
> -L /GNUstep/System/Library/Libraries -lobjc -lgnustep-base
hello.m: In function 'main':
hello.m:4:5: error: cannot find interface declaration for 'NXConstantString'
My source code:
#import <Foundation/Foundation.h>
int main(void) {
NSLog(@"hello world");
}
@
before your string would make it a plain C string, which is the wrong type to use forNSLog
's format string. – Flanagan