In file included from databasepgsql.cpp:24:
databasepgsql.h:28:33: postgresql/libpq-fe.h: No such file or directory
In file included from databasepgsql.cpp:24:
databasepgsql.h:53: error: ISO C++ forbids declaration of `PGconn' with no type
databasepgsql.h:53: error: expected `;' before '*' token
databasepgsql.h:71: error: expected `)' before '*' token
databasepgsql.h:75: error: ISO C++ forbids declaration of `PGresult' with no type
databasepgsql.h:75: error: expected `;' before '*' token
databasepgsql.cpp: In constructor `DatabasePgSQL:
atabasePgSQL()':
databasepgsql.cpp:37: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:37: error: (Each undeclared identifier is reported only once for each function it appears in.)
databasepgsql.cpp:37: error: `PQconnectdb' undeclared (first use this function)
databasepgsql.cpp:38: error: `PQstatus' undeclared (first use this function)
databasepgsql.cpp:38: error: `CONNECTION_OK' undeclared (first use this function)
databasepgsql.cpp:41: error: `PQerrorMessage' undeclared (first use this function)
databasepgsql.cpp: In destructor `virtual DatabasePgSQL::~DatabasePgSQL()':
databasepgsql.cpp:46: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:46: error: `PQfinish' undeclared (first use this function)
databasepgsql.cpp: In member function `virtual bool DatabasePgSQL::executeQuery(const std::string&)':
databasepgsql.cpp:86: error: `PGresult' undeclared (first use this function)
databasepgsql.cpp:86: error: `res' undeclared (first use this function)
databasepgsql.cpp:86: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:86: error: `PQexec' undeclared (first use this function)
databasepgsql.cpp:87: error: `ExecStatusType' undeclared (first use this function)
databasepgsql.cpp:87: error: expected `;' before "stat"
databasepgsql.cpp:89: error: expected primary-expression before '!=' token
databasepgsql.cpp:89: error: `PGRES_COMMAND_OK' undeclared (first use this function)
databasepgsql.cpp:89: error: expected primary-expression before '!=' token
databasepgsql.cpp:89: error: `PGRES_TUPLES_OK' undeclared (first use this function)
databasepgsql.cpp:90: error: `PQresultErrorMessage' undeclared (first use this function)
databasepgsql.cpp:91: error: `PQclear' undeclared (first use this function)
databasepgsql.cpp: In member function `virtual DBResult* DatabasePgSQL::storeQuery(const std::string&)':
databasepgsql.cpp:110: error: `PGresult' undeclared (first use this function)
databasepgsql.cpp:110: error: `res' undeclared (first use this function)
databasepgsql.cpp:110: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:110: error: `PQexec' undeclared (first use this function)
databasepgsql.cpp:111: error: `ExecStatusType' undeclared (first use this function)
databasepgsql.cpp:111: error: expected `;' before "stat"
databasepgsql.cpp:113: error: expected primary-expression before '!=' token
databasepgsql.cpp:113: error: `PGRES_COMMAND_OK' undeclared (first use this function)
databasepgsql.cpp:113: error: expected primary-expression before '!=' token
databasepgsql.cpp:113: error: `PGRES_TUPLES_OK' undeclared (first use this function)
databasepgsql.cpp:114: error: `PQresultErrorMessage' undeclared (first use this function)
databasepgsql.cpp:115: error: `PQclear' undeclared (first use this function)
databasepgsql.cpp: In member function `virtual std::string DatabasePgSQL::escapeString(const std::string&)':
databasepgsql.cpp:135: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:135: error: `PQescapeStringConn' undeclared (first use this function)
databasepgsql.cpp: In member function `virtual std::string DatabasePgSQL::escapeBlob(const char*, uint32_t)':
databasepgsql.cpp:151: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:151: error: `PQescapeByteaConn' undeclared (first use this function)
databasepgsql.cpp:155: error: `PQfreemem' undeclared (first use this function)
databasepgsql.cpp: In member function `virtual int32_t PgSQLResult::getDataInt(const std::string&)':
databasepgsql.cpp:193: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:193: error: `PQfnumber' undeclared (first use this function)
databasepgsql.cpp:193: error: `PQgetvalue' undeclared (first use this function)
databasepgsql.cpp: In member function `virtual int64_t PgSQLResult::getDataLong(const std::string&)':
databasepgsql.cpp:198: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:198: error: `PQfnumber' undeclared (first use this function)
databasepgsql.cpp:198: error: `PQgetvalue' undeclared (first use this function)
databasepgsql.cpp: In member function `virtual std::string PgSQLResult::getDataString(const std::string&)':
databasepgsql.cpp:203: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:203: error: `PQfnumber' undeclared (first use this function)
databasepgsql.cpp:203: error: `PQgetvalue' undeclared (first use this function)
databasepgsql.cpp: In member function `virtual const char* PgSQLResult::getDataStream(const std::string&, long unsigned int&)':
databasepgsql.cpp:208: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:208: error: `PQfnumber' undeclared (first use this function)
databasepgsql.cpp:208: error: `PQgetvalue' undeclared (first use this function)
databasepgsql.cpp:209: error: `PQunescapeBytea' undeclared (first use this function)
databasepgsql.cpp:212: error: `PQfreemem' undeclared (first use this function)
databasepgsql.cpp: At global scope:
databasepgsql.cpp:225: error: expected `)' before '*' token
databasepgsql.cpp:225: error: expected `,' or `;' before '*' token
databasepgsql.cpp: In destructor `virtual PgSQLResult::~PgSQLResult()':
databasepgsql.cpp:234: error: `m_handle' undeclared (first use this function)
databasepgsql.cpp:234: error: `PQclear' undeclared (first use this function)
make.exe: *** [databasepgsql.o] Error 1
Execution terminated
How can i fix this please help me out.... I thought i followed the tutorial exactly but apparently im missing something