Ragazzi per favore aiutatemi.. è in gioco la mia tesi!!!
Allora vi spiego il problema, uso NetBeans per utilizzare C++ e mi devo interfacciare ad un databse fatto in MySQL. Come connector uso MySql++ e credo di essere riuscito a configurare tutto. Faccio correre un esempio abbastanza semplice, ma la compilazione mi restituisce questo tipo di errore:

C:/Users/Francesco/Documents/NetBeansProjects/Tokamak/main1.cpp:47: undefined reference to `__imp___ZN7mysqlpp10ConnectionC1Eb'

C:/Users/Francesco/Documents/NetBeansProjects/Tokamak/main1.cpp:48: undefined reference to `mysqlpp::Connection::connect(char const*, char const*, char const*, char const*, unsigned int)'
...
e una lunga serie di errori simili a quelli postati sopra...
Vi giuro che non so come risolvere. Vi posto anche il codice del mio esempio. Aspetto vostre risposte...Vi ringrazio

#include "./Lib_Mysql++/cmdline.h"
#include "./Lib_Mysql++/printdata.h"
#include "./Lib_Mysql++/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 = "tokamak", *server = "localhost", *user = "root", *pass = "";
if (!parse_command_line(argc, argv, &db, &server, &user, &pass)) {
return 1;
}

// 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
// and display it.
mysqlpp::Query query = conn.query("select item from stock");
if (mysqlpp::StoreQueryResult res = query.store()) {
cout << "We have:" << endl;
for (size_t i = 0; i < res.num_rows(); ++i) {
cout << '\t' << res[i][0] << endl;
}
}
else {
cerr << "Failed to get item list: " << query.error() << endl;
return 1;
}

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