AppName: simple1.exe Ap...

Hello, its me again. So I finally compiled the library, and all I got was a dll and a .a file. So i linked to the .a file. Now, when i run my program i get this error "AppName: simple1.exe AppVer: 0.0.0.0 ModName: mysqlpp.dll
ModVer: 0.0.0.0 Offset: 00005a2c" It is an "Unexpected error". I really hope that you can help me out. I put the mysqlpp.dll into my system32. BTW: I am using code::blocks to compile, here is my code:
#include "cmdline.h"
#include "printdata.h"
#include <mysql++.h>
#include <iostream>
#include <iomanip>

using namespace std;

int
main(int argc, char *argv[])
{
// Get database access parameters from command line
const char* db = "**********", *server = "*****", *user = "*************************", *pass = "***************";
// Connect to the sample database.
mysqlpp::Connection conn(false);
if (conn.connect(db, server, user, pass)) {
// Retrieve a subset of the sample stock table set up by resetdb
mysqlpp::Query query = conn.query("SELECT username FROM accmain");
if (mysqlpp::StoreQueryResult res = query.store()) {
std::cout << "We have:" << std::endl;
mysqlpp::StoreQueryResult::const_iterator it;
for (it = res.begin(); it != res.end(); ++it) {
mysqlpp::Row row = *it;
std::cout << '\t' << row[0] << std::endl;
}
}
else {
cerr << "Failed to get item list: " << query.error() << std::endl;
return 1;
}

return 0;
}
else {
cerr << "DB connection failed: " << conn.error() << std::endl;
return 1;
}
}

The code will run just fine, get the results, then all of the sudden i get that error mentioned at the beginning of the post.
Last edited on
I do not get that error running this code.
What are your search directories and links? Could there be a problem in those that i have?
Topic archived. No new replies allowed.