Re: [Quickfix-developers] postgresql support
Brought to you by:
orenmnero
From: Vincent P. <vpr...@ph...> - 2008-06-11 01:17:20
|
On Jun 9, 2008, at 9:03 PM, Vincent Predoehl wrote: > QuickFIX Documentation: http://www.quickfixengine.org/quickfix/doc/ > html/index.html > QuickFIX Support: http://www.quickfixengine.org/services.html > > 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. either nobody knows the answer to this, or it's such a stupid question nobody is bothering to answer. Anyway, I noticed I was missing libpq ( postgre C++ interface ) so I installed that. I found the missing header not found by PostgreSQLConnection.h - libpq-fe.h, and added that directory to the path, but I still get the same error. I'm guessing that the path may be modified by ./configure or make so it isn't finding the file. > > 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$ > > ---------------------------------------------------------------------- > --- > Check out the new SourceForge.net Marketplace. > It's the best place to buy or sell services for > just about anything Open Source. > http://sourceforge.net/services/buy/ > index.php_______________________________________________ > Quickfix-developers mailing list > Qui...@li... > https://lists.sourceforge.net/lists/listinfo/quickfix-developers -- VP |