[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Beginner questions regarding GNUStep on MS Windows and NSLog
From: |
aljordan |
Subject: |
Beginner questions regarding GNUStep on MS Windows and NSLog |
Date: |
Tue, 2 Mar 2010 16:19:26 +0000 |
Hi,
I bought the book Programming in Objective-C 2.0, then set up GNUStep on
Windows so that I could compile the examples and write other code.
The first example is a Hello World type of program that uses NSLog to output to
the terminal. The book explains that one should compile this program in the
following manner:
gcc -framework Foundation prog1.m -o prog1
The GNUStep Windows installation doesn't like this, complaining as follows:
$ gcc -framework Foundation prog1.m -o prog1
gcc.exe: Foundation: No such file or directory
cc1obj.exe: error: unrecognized command line option "-framework"
So, I copied a GNUmakefile from one of the example applications, and changed it
to fit the example program as follows:
include $(GNUSTEP_MAKEFILES)/common.make
APP_NAME = prog1
prog1_OBJC_FILES = prog1.m
include $(GNUSTEP_MAKEFILES)/application.make
Now the example program compiles fine when I run make, and it runs without
error when I run
openapp ./prog1.app
but my "Hello" string is not output to the terminal window I am working within.
Does common.make or application.make redirect the NSLog output to somewhere
other than the terminal? Is there another reason this might not work as
expected under M.S. Windows?
Thank you for any suggestions,
Alan
- Beginner questions regarding GNUStep on MS Windows and NSLog,
aljordan <=