Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Mac > BOOK: Beginning Mac OS X Programming
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK: Beginning Mac OS X Programming
This is the forum to discuss the Wrox book Beginning Mac OS X Programming by Michael Trent, Drew McCormack; ISBN: 9780764573996
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning Mac OS X Programming section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developersí questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old June 24th, 2010, 05:04 AM
Registered User
 
Join Date: Jun 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 3 - p.71 - Building and running problems

When trying to build and run the Calculator project I got a lot more errors and warnings then the respective 6 errors and 1 warning.

After Step 14 I remain with 27 errors and 2 warnings in Calculate.c as listed here:

---
Build Calculator of project Calculator with configuration Debug

CompileC build/Calculator.build/Debug/Calculator.build/Objects-normal/x86_64/Calculate.o Calculate.c normal x86_64 c com.apple.compilers.gcc.4_2
cd Calculator
setenv LANG en_US.US-ASCII
/Developer/usr/bin/gcc-4.2 -x c -arch x86_64 -fmessage-length=0 -pipe -std=gnu99 -Wno-trigraphs -fpascal-strings -fasm-blocks -O0 -Wreturn-type -Wunused-variable -isysroot /Developer/SDKs/MacOSX10.6.sdk -mfix-and-continue -mmacosx-version-min=10.6 -gdwarf-2 -iquote Calculator/build/Calculator.build/Debug/Calculator.build/Calculator-generated-files.hmap -ICalculator/build/Calculator.build/Debug/Calculator.build/Calculator-own-target-headers.hmap -ICalculator/build/Calculator.build/Debug/Calculator.build/Calculator-all-target-headers.hmap -iquote Calculator/build/Calculator.build/Debug/Calculator.build/Calculator-project-headers.hmap -FCalculator/build/Debug -ICalculator/build/Debug/include -ICalculator/build/Calculator.build/Debug/Calculator.build/DerivedSources/x86_64 -ICalculator/build/Calculator.build/Debug/Calculator.build/DerivedSources -c Calculator/Calculate.c -o Calculator/build/Calculator.build/Debug/Calculator.build/Objects-normal/x86_64/Calculate.o

Calculator/Calculate.c: In function 'calculate':
Calculator/Calculate.c:19: error: nested functions are disabled, use -fnested-functions to re-enable
Calculator/Calculate.c:19: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'switch'
Calculator/Calculate.c:20: error: stray '\342' in program
Calculator/Calculate.c:20: error: stray '\200' in program
Calculator/Calculate.c:20: error: stray '\230' in program
Calculator/Calculate.c:20: error: stray '\342' in program
Calculator/Calculate.c:20: error: stray '\200' in program
Calculator/Calculate.c:20: error: stray '\231' in program
Calculator/Calculate.c:20: error: expected expression before ':' token
Calculator/Calculate.c:21: error: 'result' undeclared (first use in this function)
Calculator/Calculate.c:21: error: (Each undeclared identifier is reported only once
Calculator/Calculate.c:21: error: for each function it appears in.)
Calculator/Calculate.c:23: error: stray '\342' in program
Calculator/Calculate.c:23: error: stray '\200' in program
Calculator/Calculate.c:23: error: stray '\230' in program
Calculator/Calculate.c:23: error: stray '\342' in program
Calculator/Calculate.c:23: error: stray '\200' in program
Calculator/Calculate.c:23: error: stray '\231' in program
Calculator/Calculate.c:24: error: expected ':' or '...' before ';' token
Calculator/Calculate.c:27: error: stray '\342' in program
Calculator/Calculate.c:27: error: stray '\200' in program
Calculator/Calculate.c:27: error: stray '\234' in program
Calculator/Calculate.c:27: error: 'unknown' undeclared (first use in this function)
Calculator/Calculate.c:27: error: expected ')' before 'operator'
Calculator/Calculate.c:27: error: stray '\' in program
Calculator/Calculate.c:27: error: stray '\342' in program
Calculator/Calculate.c:27: error: stray '\200' in program
Calculator/Calculate.c:27: error: stray '\235' in program
Calculator/Calculate.c:27: warning: format not a string literal and no format arguments
Calculator/Calculate.c:28: error: expected ';' before 'exit'
Calculator/Calculate.c:32: warning: control reaches end of non-void function
---

Do anybody know why I get all these errors and how to solve them?

Thanx.

LuckyLuc
Reply With Quote
  #2 (permalink)  
Old June 24th, 2010, 05:36 AM
Registered User
 
Join Date: Jun 2010
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I have to inform you that this is about "Beginning Mac OS X SNOW LEOPARD Programming"...
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Page 71 Error LongJohnSilver BOOK: Professional Visual Basic 2008 ISBN: 978-0-470-19136-1 0 January 9th, 2009 03:09 PM
Chapter 4 building error LanceWang BOOK: Professional Java Development with the Spring Framework 0 March 7th, 2008 05:53 PM
running out of field in query building yixchen Access 2 December 19th, 2005 09:19 AM
How can I get the code of1-86100-71-5 starcn C# 2 March 27th, 2004 07:24 AM



All times are GMT -4. The time now is 10:43 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.