Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Open Source > BOOK Beginning Linux Programming, 3rd Edition
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
BOOK Beginning Linux Programming, 3rd Edition
This is the forum to discuss the Wrox book Beginning Linux Programming, 2nd Edition by Richard Stones, Neil Matthew, Alan Cox; ISBN: 9780764543739
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK Beginning Linux Programming, 3rd Edition 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
 
 
Thread Tools Display Modes
  #1 (permalink)  
Old December 9th, 2004, 10:12 PM
Registered User
 
Join Date: Dec 2004
Location: , , USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 1, page 11 typo?

The following commands are in step 5 of the process of creating a sample library file and using it in a program (Chapter 1, page 11).

$ cgcc -c program.c
$ cgcc -c program program.o bill.o

When used, Linux complained because it could not find the command "cgcc".

bash: cgcc: command not found

Am I using the wrong shell? I went ahead and used "gcc" and it worked fine. I wanted to confirm this was actually an error before reporting it to the publisher.

If anyone still checks this forum...

ian

Jack of all trades; master of none.
  #2 (permalink)  
Old December 13th, 2004, 05:32 AM
Registered User
 
Join Date: Jul 2004
Location: , , .
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hello,

I didn't find anything about 'cgcc' on Google, either.
As I'm still learning the C language, I can't speak further about it, but of course 'gcc' works (or, even better, 'cc' in any Unix system - in most cases, it points to 'gcc').

Ari Constancio

  #3 (permalink)  
Old December 14th, 2004, 02:47 AM
Registered User
 
Join Date: Dec 2004
Location: , , USA.
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Ok. I'll notify the publisher to see if they know about it.

Thanks,
ian

___________________________________________
Jack of all trades; master of none.
  #4 (permalink)  
Old November 20th, 2005, 12:11 PM
Registered User
 
Join Date: Mar 2005
Location: , Texas, USA.
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm pretty sure it is an error. I have used numerous versions of Linux since very early Slackware. Maybe it is used in win versions - I have no experience there.

Jeff

  #5 (permalink)  
Old August 25th, 2006, 11:43 AM
Registered User
 
Join Date: Aug 2006
Location: , , .
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

the only thing I found was called " The Clever Compiler"
here:
http://www.cs.caltech.edu/research/i...101/tn101.html

of course in our case I believe it to be a typo or the author was using the Clever compiler...
gcc is the correct command for us to use.


 


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
Health Monitoring System - Chapter 3 Page 109 - 11 Laurie S. Stapleton BOOK: ASP.NET 2.0 Website Programming Problem Design Solution ISBN: 978-0-7645-8464-0 2 August 31st, 2006 01:13 PM
Page 352 (Chapter 11) IDisposable Problem sosborne BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 August 18th, 2006 06:12 PM
Chapter 11, page 623, struct WNDCLASS Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 July 13th, 2006 06:08 AM



All times are GMT -4. The time now is 02:38 PM.


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