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 November 12th, 2008, 02:37 AM
Registered User
 
Join Date: Nov 2008
Location: Elma, WA, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default Downloaded SW is different from Book

I am wondering what I am supposed to learn when working SW downloaded from this site isn't the same as the SW I've entered here. I find it hard to learn when the perfectly rendered sw from the book isn't capable of working and gives 100 errors that don't exist according to the literature. I am wondering if anyone can give me an explanation as to the revisions that seem to work in the downloaded SW. Thanks..
Marty

  #2 (permalink)  
Old November 12th, 2008, 07:47 PM
Registered User
 
Join Date: Nov 2008
Location: Elma, WA, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Part 2 - OK- Hoping to find some help on the differences in the Source Code for cursesapp.c in Chap 6 w/the downloaded code from Wrox. It would really be handy if I had an explanation for the changes They are very significant about 120 lines and it's not all /*statements*/. The last lines of code have been shifted out to a different area and there are significant differences in some of the menu's and what not. It's like they only halfassed the book and didn't bother to correct the problems or give explanations for the changes. Kind of unprofessional...I know various code in the book is inserted after the other code is brought to edit from previous code.
Marty

  #3 (permalink)  
Old November 16th, 2008, 10:05 PM
Registered User
 
Join Date: Nov 2008
Location: Elma, WA, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK- even the downloaded SW for Chap 7 dbm1 is getting the same errors I got with mine.  Well, exactly the same errors.  In the reading it says to get the GNU Compatibility Libraries in order to fix this problem even though I already have The supposed required Libs.  gdbm.h and ndbm.h that were loaded with my Suse linux 11.  So, I am thinking there must be a different solution than the 2 that are given in the reading after the particular code.  Does anyone know what that might be? I have used the solutions and tried several variations in order to circumvent and possibly solve the problem.  Several of them return the same errors. Which with the libraries installed and in the path should not happen I don't think...The particular functions are in the header files and available so I am in a quandary.

/tmp/ccUXrIce.o: In function `main':
dbm1a.c:(.text+0x2d): undefined reference to `dbm_open'
dbm1a.c:(.text+0x246): undefined reference to `dbm_store'
dbm1a.c:(.text+0x2f0): undefined reference to `dbm_fetch'
dbm1a.c:(.text+0x37b): undefined reference to `dbm_close'
collect2: ld returned 1 exit status

Any Ideas?
Marty
  #4 (permalink)  
Old November 26th, 2008, 12:15 AM
Registered User
 
Join Date: Nov 2008
Location: Elma, WA, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK new one- building and compiling The app in chp 7 I get a problem with almost every DBM call from the headers unless I add the extra H files and then I get a conflict but not a long list of errors on how fetch,close, open, enter are not capable of compiling because they don't exist in the define(header) file. The conflict being:

gcc -I/usr/include/gdbm -c access.c
In file included from access.c:10:
/usr/include/ndbm.h:38: error: conflicting types for ‘datum’
/usr/include/gdbm.h:59: error: previous declaration of ‘datum’ was here
make: *** [access.o] Error 1
 Anyone got any Ideas?
Marty

 


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
1st Annual SW Florida Code Camp - 9/13! Pelican66 User Group Events - INETA 0 August 9th, 2008 12:16 PM
downloaded code Joseph BOOK: Beginning SQL 5 December 23rd, 2007 08:35 PM
Hide downloaded filename relaytest49 ASP.NET 2.0 Professional 1 June 24th, 2006 04:05 AM
Problem with downloaded code Jags ADO.NET 1 April 10th, 2005 03:56 PM
Downloaded example doesn't correspond to book ex vancor2000 BOOK: Professional Crystal Reports for VS.NET 0 August 10th, 2004 11:35 AM



All times are GMT -4. The time now is 07:40 AM.


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