Re: undefined struct 'pg_conn' on Windows7 - Mailing list pgsql-general

From Albe Laurenz
Subject Re: undefined struct 'pg_conn' on Windows7
Date
Msg-id A737B7A37273E048B164557ADEF4A58B17D7CDD8@ntex2010a.host.magwien.gv.at
Whole thread Raw
In response to undefined struct 'pg_conn' on Windows7  (Brilliantov Kirill Vladimirovich <brilliantov@byterg.ru>)
Responses Re: undefined struct 'pg_conn' on Windows7
List pgsql-general
Brilliantov Kirill Vladimirovich wrote:
> I install postgre from postgresql-9.3.5-3-windows-x64.exe file and try
> use libpq.lib from it.
> My system Windows7 ServicePack1 and I use VisualStudioExpress 12 for
> write code.
> I add path to <postgre_install_dir>\include and
> <postgre_install_dir>\lib in project and include libpq-fe.h file.
> Unfortunately when I try build project I get error "uses undefined
> struct 'pg_conn'".
> How can I solve this problem?

Can you show the C code?
Any chance that you use a variable of type "PGconn" when it should be "PGconn*" ?

Yours,
Laurenz Albe

pgsql-general by date:

Previous
From: Brilliantov Kirill Vladimirovich
Date:
Subject: undefined struct 'pg_conn' on Windows7
Next
From: Brilliantov Kirill Vladimirovich
Date:
Subject: Re: undefined struct 'pg_conn' on Windows7