この質問に関連する質問があります WindowsでGnustepを使用してObjective Cをコンパイルできません
Windows で最初の目的の C アプリをコンパイルしようとしています。ファイルは hello.m です (以下のすべてのファイルは Visual Studio で作成されます)
#import <../Program Files/GNUstep/System/Library/Headers/Foundation/Foundation.h>
int main(int argc, const char* argv[])
{
NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
NSLog(@"Hello from Hello.m!");
[pool release];
return 0;
}
それをコンパイルするために、同じディレクトリに GNUmakefile があります。
include $(GNUSTEP_MAKEFILES)/common.make
TOOL_NAME = hello
YourProg_OBJC_FILES = hello.m
include $(GNUSTEP_MAKEFILES)/tool.make
私が理解しているように、makeコマンド「make」を実行すると、GNUmakefileが実行されます。
GNUStep シェルでこれを行うと、エラーが発生します
GNUmakefile:1 *** missing separator. Stop.
1行目にタブを追加してみました。これは何もしませんでした。はい、スペースではなくタブだったと思います。