Sign in to follow this  
Mania-92

running mysql++ examples

Recommended Posts

Mania-92    122
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
pulpfist    528
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this