Wrox Programmer Forums
| 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 software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #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, 10: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.




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 12:13 PM
Page 352 (Chapter 11) IDisposable Problem sosborne BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 1 August 18th, 2006 05:12 PM
Chapter 11, page 623, struct WNDCLASS Nick Y BOOK: Ivor Horton's Beginning Visual C++ 2005 0 July 13th, 2006 05:08 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.