Amazon.com Widgets gnustep
Welcome, Guest. Please login or register.
Did you miss your activation email?
September 01, 2014, 09:19:03 PM
Home Help Search chat Login Register 
News: Read this please.The Great Kangaroo Escape Looking for reviews of the 4th ed on Amazon!   Twitter:  @skochan
                     

+ Official Forum for Programming in Objective-C (the iPhone Programming Language) - Stephen Kochan
|-+ Old Stuff
| |-+ Suggestion Box
| | |-+ gnustep
Pages: [1] Go Down
Print
Author Topic: gnustep (Read 1216 times)
Robot-Scott
Jr. Member
**
Posts: 52







on: March 31, 2009, 06:15:54 PM

Could we have a subforum for GnuStep?  Or does anyone even use it?

I know I need to get a macbook so I can take Xcode with me wherever I go, but for now I have a PC laptop.  I was wondering how I could write some of the program examples in GnuStep, is it possible?
Logged

"Think globally, act within local variable scope."
skochan
Administrator
Hero Member
*****
Posts: 3114







Reply #1 on: March 31, 2009, 07:02:47 PM

All of the program examples in the 1st edition of the book were run with GNUStep.  I didn't continue that into the second edition due to lack of growth of Objective-C outside of the Mac world.  Check this thread:

http://classroomm.com/objective-c/index.php?topic=333.msg775#msg775

If there's enough interest, I'll start a new board.  However, I fear you are a member of a very small minority.  Let's get other's input here.

Cheers,

Steve Kochan
Logged
Robot-Scott
Jr. Member
**
Posts: 52







Reply #2 on: April 02, 2009, 05:34:00 PM

Just for kicks, I followed the instructions in that pdf (I reattached it here so we don't have to jump to other threads) and this is the output I got:

prog1.m: In function `main':
prog1.m:5: error: stray '\147' in program
prog1.m:5: error: `Programming' undeclared (first use in this function)
prog1.m:5: error: (Each undeclared identifier is reported only once
prog1.m:5: error: for each function it appears in.)
prog1.m:5: error: syntax error before "is"
prog1.m:5: error: stray '\' in program
prog1.m:5: error: stray '\148' in program
prog1.m:7:2: warning: no newline at end of file

Yeah, I'm guessing a lot has changed or maybe I'm just doing it wrong.  But I think I'll just wait for a MacBook and then I'll be able to Xcode anywhere.
Logged

"Think globally, act within local variable scope."
skochan
Administrator
Hero Member
*****
Posts: 3114







Reply #3 on: April 02, 2009, 05:43:17 PM

Did you copy and paste that program from the pdf?  I think your problem has to do with the double quote characters (they have different codes) around the string "Programming is fun.\n".   Try retyping that line in your program and give it another go.

Cheers,

Steve
Last Edit: April 02, 2009, 06:38:24 PM by skochan Logged
Pages: [1] Go Up
Print
Jump to:



Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Entire forum contents (c) 2009 classroomM.com. All rights reserved.