|
|
 |
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 p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

November 12th, 2008, 03:37 AM
|
|
Registered User
|
|
Join Date: Nov 2008
Location: Elma, WA, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

November 12th, 2008, 08:47 PM
|
|
Registered User
|
|
Join Date: Nov 2008
Location: Elma, WA, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

November 16th, 2008, 11:05 PM
|
|
Registered User
|
|
Join Date: Nov 2008
Location: Elma, WA, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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
|

November 26th, 2008, 01:15 AM
|
|
Registered User
|
|
Join Date: Nov 2008
Location: Elma, WA, USA.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
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 |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |