Jump to content
  • Advertisement
Sign in to follow this  
Mania-92

running mysql++ examples

This topic is 3709 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I'm trying to run the examples (simple1 and resetdb) that come with mysql++ but when I start it, it just flashes. Just like when you make a simple console app and you forget cin.get(); at the end only difference is that putting cin.get(); at the end doesn't fix te problem. code: http://codedump.mastercode.nl/474/.

Share this post


Link to post
Share on other sites
Advertisement
There is a couple of places your program quits without giving a message, like here:

if (!parse_command_line(argc, argv, &db, &server, &user, &pass)) {
return 1;
}


If you print a message to cerr before returning you will at least find out where the program exits.

Also, you can remove the call to parse_command_line all together since you have hardcoded the parameters to connect anyway. Maybe that will get you a step futher.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!