----- PostgresExample ( MAIN GCC DEBUG DEBUG_FULL BLITZ WIN32 )
Postgres.cpp
In file included from C:\Projects\upp\PostgresExample\/Postgres.h:13,
from C:\Projects\upp\PostgresExample\Postgres.cpp:1:
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h:8:22: error: libpq-fe.h: No such file or directory
In file included from C:\Projects\upp\PostgresExample\/Postgres.h:13,
from C:\Projects\upp\PostgresExample\Postgres.cpp:1:
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h:52: error: ISO C++ forbids declaration of 'PGconn' with no type
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h:52: error: expected ';' before '*' token
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h:53: error: ISO C++ forbids declaration of 'PGresult' with no type
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h:53: error: expected ';' before '*' token
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h:66: error: expected type-specifier before 'PGconn'
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h:75: error: ISO C++ forbids declaration of 'PGconn' with no type
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h:75: error: expected ';' before '*' token
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h:76: error: expected `;' before '}' token
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h: In member function 'virtual bool Upp::PostgreSQLSession::IsOpen() cons
t':
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h:35: error: 'conn' was not declared in this scope
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h: In member function 'Upp::String Upp::PostgreSQLSession::GetUser()':
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h:65: error: 'conn' was not declared in this scope
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h:65: error: 'PQuser' was not declared in this scope
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h: In constructor 'Upp::PostgreSQLSession::PostgreSQLSession()':
C:\upp\uppsrc/PostgreSQL/PostgreSQL.h:73: error: 'conn' was not declared in this scope
C:\Projects\upp\PostgresExample\Postgres.cpp: In member function 'bool PostgreSQLTest::OpenDB()':
C:\Projects\upp\PostgresExample\Postgres.cpp:64: error: 'POSTGRESS' was not declared in this scope
PostgresExample: 1 file(s) built in (0:08.18), 8188 msecs / file, duration = 8235 msecs
There were errors. (0:08.25)
I don't have a libpq-fe.h file and some of the other errors seem to be within the upp sources. Is there a more recent version of this example code or can someone get me pointed in the right direction? Thanks.