1
我想在Linux(Ubuntu)上的Objective-C上構建Hello World。 main.c無法在Objective-C上使用GNUstep構建程序
#import <Foundation/Foundation.h>
int main(void)
{
NSLog(@"asdasd");
return 0;
}
我不認爲這裏有錯誤。然後,我創建的Makefile:
GNUSTEP_MAKEFILES = /usr/share/GNUstep/Makefiles
include $(GNUSTEP_MAKEFILES)/common.make
TOOL_NAME = main
main_OBJC_FILES = main.m
include $(GNUSTEP_MAKEFILES)/tool.make
然後我運行的 「make」:
This is gnustep-make 2.2.0. Type 'make print-gnustep-make-help' for help.
Making all for tool main...
make[1]: GNUmakefile: no such file or directory
我怎樣才能解決這個問題?
也許您需要將您的Makefile重命名爲GNUmakefile,如錯誤所示... – Macmade 2011-04-03 16:53:48