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 _______________________________________________ Discuss-gnustep mailing list [email protected] http://lists.gnu.org/mailman/listinfo/discuss-gnustep
