LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-24-2010, 04:58 AM   #1
Shh226
LQ Newbie
 
Registered: Mar 2010
Posts: 8

Rep: Reputation: 0
Another question on CD - Database Application using MYSQL


I posted a thread regarding a CD Base Application. I can run the program, but for some reason It does not seem to work properly.
This is what I get.

$ ./app
Result of adding a cd was 1, cd_id is 14
Found 1 cds, first has ID 14
get_cd returned 1
get_cd_tracks returned 4
Title: Symphony No 1
track 0 is Lansam Schleppend
track 1 is Kraftig bewegt
track 2 is Feierlich und gemesen
track 3 is Sturmisch bewegt
Delete_cd returned 1

$

For some reason in exits the program back to the command prompt. I am using the code from Linux programming 4th edition which you can get it from here

http://www.wrox.com/WileyCDA/WroxTit...-DOWNLOAD.html

and in the folder ch08/app you will find all you need to create the CD database application.
 
Old 03-24-2010, 09:11 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 18,717

Rep: Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136Reputation: 4136
Quote:
Originally Posted by Shh226 View Post
I posted a thread regarding a CD Base Application. I can run the program, but for some reason It does not seem to work properly.
This is what I get.

$ ./app
Result of adding a cd was 1, cd_id is 14
Found 1 cds, first has ID 14
get_cd returned 1
get_cd_tracks returned 4
Title: Symphony No 1
track 0 is Lansam Schleppend
track 1 is Kraftig bewegt
track 2 is Feierlich und gemesen
track 3 is Sturmisch bewegt
Delete_cd returned 1

$

For some reason in exits the program back to the command prompt. I am using the code from Linux programming 4th edition which you can get it from here

http://www.wrox.com/WileyCDA/WroxTit...-DOWNLOAD.html

and in the folder ch08/app you will find all you need to create the CD database application.
Well, what are you expecting it to do?? Based on your last post, the application already worked and was ready to go, you just didn't run it. What are the results you are looking for??

And honestly, I doubt anyone is going to go out and download code and compile it, so they can debug it for you. If this is a book that teaches programming, chances are the examples have complete documentation and explanations.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Need help on CD - Database Application using MYSQL Shh226 Linux - Newbie 6 03-23-2010 04:36 AM
LXer: Deployment Seam Application against MySQL 5 database to Jboss 4.0.5 utilizing Seam Plugin for NetBeans 5.5.1 LXer Syndicated Linux News 0 06-30-2007 01:16 AM
help with displaying picture from mysql database. stupid and easu question. ice99 Programming 2 12-08-2006 03:53 AM
interesting question about mysql database sync shadow.blue Linux - Software 0 11-15-2003 08:24 AM
mysql database question! nabil Linux - General 3 01-22-2002 05:00 PM


All times are GMT -5. The time now is 07:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration