Search Postgresql Archives

error linking with PostgreSQL

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Here is the code:
#include "libpq-fe.h"

#ifndef HDBUTIL
#define HDBUTIL

class DBConn
{
  public:
    PGconn pg_conn;
	bool Connect();
	bool Disconnect();
};

#endif


... and here is the make error:

tux tb # make
g++  -Wall -g -o0 -lpq -I/usr/include/postgresql/libpq-4 server.cpp
db_util.cpp player.cpp  -o tbserver.exe -L/usr/lib64 `wx-config --
cxxflags` `wx-config --libs`
In file included from server.h:10,
                 from server.cpp:24:
db_util.h:11: error: field 'pg_conn' has incomplete type

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux