LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Another question on CD - Database Application using MYSQL (https://www.linuxquestions.org/questions/linux-newbie-8/another-question-on-cd-database-application-using-mysql-797503/)

Shh226 03-24-2010 04:58 AM

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.

TB0ne 03-24-2010 09:11 AM

Quote:

Originally Posted by Shh226 (Post 3910176)
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.


All times are GMT -5. The time now is 03:08 AM.