[Quickfix-developers] postgresql support
Brought to you by:
orenmnero
From: Vincent P. <vpr...@ph...> - 2008-06-10 02:03:47
|
How do you compile in postgresql support? I've tried several things, but I keep getting errors (see below). I must not understand what the base directory parameter in --with-postgresql=<base directory> option means. I tried pointing it to the postgresql dev (headers) directory and a postgresql database. Thanks. -- VP In file included from ../PostgreSQLStore.h:36, from PostgreSQLStoreTestCase.h:28, from PostgreSQLStoreTestCase.cpp:29: ../PostgreSQLConnection.h:35:22: error: libpq-fe.h: No such file or directory ../PostgreSQLConnection.h:55: error: 'PGconn' has not been declared ../PostgreSQLConnection.h:99: error: ISO C++ forbids declaration of 'PGresult' with no type ../PostgreSQLConnection.h:99: error: expected ';' before '*' token ../PostgreSQLConnection.h:100: error: 'ExecStatusType' does not name a type ../PostgreSQLConnection.h: In constructor 'FIX::PostgreSQLQuery::PostgreSQLQuery(const std::string&)': ../PostgreSQLConnection.h:46: error: class 'FIX::PostgreSQLQuery' does not have any field named 'm_result' ../PostgreSQLConnection.h: In destructor 'FIX::PostgreSQLQuery::~PostgreSQLQuery()': ../PostgreSQLConnection.h:51: error: 'm_result' was not declared in this scope ../PostgreSQLConnection.h:52: error: 'PQclear' was not declared in this scope ../PostgreSQLConnection.h: In member function 'bool FIX::PostgreSQLQuery::execute(int*)': ../PostgreSQLConnection.h:61: error: 'm_result' was not declared in this scope ../PostgreSQLConnection.h:61: error: 'PQclear' was not declared in this scope ../PostgreSQLConnection.h:62: error: 'm_result' was not declared in this scope ../PostgreSQLConnection.h:62: error: 'PQexec' was not declared in this scope ../PostgreSQLConnection.h:63: error: 'm_status' was not declared in this scope ../PostgreSQLConnection.h:63: error: 'PQresultStatus' was not declared in this scope ../PostgreSQLConnection.h:65: error: 'PQreset' was not declared in this scope ../PostgreSQLConnection.h: In member function 'bool FIX::PostgreSQLQuery::success()': ../PostgreSQLConnection.h:73: error: 'm_status' was not declared in this scope ../PostgreSQLConnection.h:73: error: 'PGRES_TUPLES_OK' was not declared in this scope ../PostgreSQLConnection.h:74: error: 'PGRES_COMMAND_OK' was not declared in this scope ../PostgreSQLConnection.h: In member function 'int FIX::PostgreSQLQuery::rows()': ../PostgreSQLConnection.h:79: error: 'm_result' was not declared in this scope ../PostgreSQLConnection.h:79: error: 'PQntuples' was not declared in this scope ../PostgreSQLConnection.h: In member function 'char* FIX::PostgreSQLQuery::reason()': ../PostgreSQLConnection.h:84: error: 'm_result' was not declared in this scope ../PostgreSQLConnection.h:84: error: 'PQresultErrorMessage' was not declared in this scope ../PostgreSQLConnection.h: In member function 'char* FIX::PostgreSQLQuery::getValue(int, int)': ../PostgreSQLConnection.h:89: error: 'm_result' was not declared in this scope ../PostgreSQLConnection.h:89: error: 'PQgetvalue' was not declared in this scope ../PostgreSQLConnection.h: At global scope: ../PostgreSQLConnection.h:164: error: ISO C++ forbids declaration of 'PGconn' with no type ../PostgreSQLConnection.h:164: error: expected ';' before '*' token ../PostgreSQLConnection.h: In destructor 'FIX::PostgreSQLConnection::~PostgreSQLConnection()': ../PostgreSQLConnection.h:124: error: 'm_pConnection' was not declared in this scope ../PostgreSQLConnection.h:125: error: 'PQfinish' was not declared in this scope ../PostgreSQLConnection.h: In member function 'bool FIX::PostgreSQLConnection::connected()': ../PostgreSQLConnection.h:136: error: 'm_pConnection' was not declared in this scope ../PostgreSQLConnection.h:136: error: 'PQstatus' was not declared in this scope ../PostgreSQLConnection.h:136: error: 'CONNECTION_OK' was not declared in this scope ../PostgreSQLConnection.h: In member function 'bool FIX::PostgreSQLConnection::reconnect()': ../PostgreSQLConnection.h:142: error: 'm_pConnection' was not declared in this scope ../PostgreSQLConnection.h:142: error: 'PQreset' was not declared in this scope ../PostgreSQLConnection.h: In member function 'bool FIX::PostgreSQLConnection::execute(FIX::PostgreSQLQuery&)': ../PostgreSQLConnection.h:149: error: 'm_pConnection' was not declared in this scope ../PostgreSQLConnection.h: In member function 'void FIX::PostgreSQLConnection::connect()': ../PostgreSQLConnection.h:156: error: 'm_pConnection' was not declared in this scope ../PostgreSQLConnection.h:158: error: 'PQsetdbLogin' was not declared in this scope make[4]: *** [PostgreSQLStoreTestCase.lo] Error 1 make[3]: *** [all-recursive] Error 1 make[2]: *** [all-recursive] Error 1 make[1]: *** [all-recursive] Error 1 make: *** [all] Error 2 Desktop:~/Phoenix/Applications/quickfix vpredoehl$ |