我终于让GNUstep (在windows上)工作了,它可以编译并运行得很好。但是,每当我尝试使用NSLog时,我都会得到以下错误:
$ 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'
我的源码:
#import <Foundation/Foundation.h>
int main(void) {
NSLog(@"hello world");
}
https://stackoverflow.com/questions/4976351
复制相似问题