I have a question related to this. Unable to compile Objective-C using Gnustep in windows
I am trying to compile my first c application on Windows. Hello.m file (all files created in 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;
}
To compile it, I have a GNUmake file in the same directory:
include $(GNUSTEP_MAKEFILES)/common.make
TOOL_NAME = hello
YourProg_OBJC_FILES = hello.m
include $(GNUSTEP_MAKEFILES)/tool.make
As I understand it, when I run the make command, the GNUmakefile will be executed.
When I do this in the GNUStep shell, I get an error
GNUmakefile:1 *** missing separator. Stop.
I tried adding a tab to the first line. It did nothing. Yes, I'm sure this is a tab, not a space.
source
share