Reputation: 3118
I'm trying to compile for the first time, a Obj-C source under Windows 7. I installed GNUstep and when I try to compile a simple hello world file it says to me I had MinGW installed before with CodeBlocks fwiw...
Here is the error message I get from the GNUstep shell:
EDIT: I tryed to add this GNUmakefile
include $(GNUSTEP_MAKEFILES)/common.make
APP_NAME = PanelTest
PanelTest_OBJC_FILES = main.m
include $(GNUSTEP_MAKEFILES)/application.make
but nothing changes.
EDIT 2: See @crashmstr reply to overcame the issue.
Now when I compile it says to me this
fatal error: Foundation/Foundation.h: No such file or directory compilaion terminated.
What should I do?
Upvotes: 0
Views: 164
Reputation: 11436
Is your path set correctly? The error message I see in your screenshot refers to g++
was not found.
Upvotes: 0
Reputation: 28563
C:\
is leaving you in the cd command, and in the next line, you are then adding g++
to send to the cd
command.
Note the >
in front of g++
instead of the $
, plus the fact that it says sh: cd: C:g++
In the shell, you need to use Unix style paths and /
as the path separator.
Upvotes: 4