pqxx libpq.dll, no such file in dir
Bonjour,
Je suis sous eclipse et je tente d'éxécuter
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
| #include <iostream>
#include <pqxx/pqxx>
using namespace std;
using namespace pqxx;
int main(int argc, char* argv[])
{
try{
connection C("dbname=testdb user=postgres password=cohondob \
hostaddr=127.0.0.1 port=5432");
if (C.is_open()) {
cout << "Opened database successfully: " << C.dbname() << endl;
} else {
cout << "Can't open database" << endl;
return 1;
}
C.disconnect ();
}catch (const std::exception &e){
cerr << e.what() << std::endl;
return 1;
}
} |
avec libpd.dll dans le Degug/ mais il me retourne :
Code:
1 2 3 4
| **** Internal Builder is used for build ****
g++ -O0 -g3 -Wall -c -fmessage-length=0 -osrc\tracker.o ..\src\tracker.cpp
..\src\tracker.cpp:2:21: fatal error: pqxx/pqxx: No such file or directory
#include <pqxx/pqxx> |
Pourtant je l'ai en librairie.
Quelqu'un à une idée ?
Bien à vous