Re: undefined struct 'pg_conn' on Windows7

From: Albe Laurenz <laurenz(dot)albe(at)wien(dot)gv(dot)at>
To: "brilliantov(at)byterg(dot)ru" <brilliantov(at)byterg(dot)ru>, "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: undefined struct 'pg_conn' on Windows7
Date: 2014-10-29 08:57:12
Message-ID: A737B7A37273E048B164557ADEF4A58B17D7CDD8@ntex2010a.host.magwien.gv.at
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Brilliantov Kirill Vladimirovich 2014-10-29 09:02:03 Re: undefined struct 'pg_conn' on Windows7
Previous Message Brilliantov Kirill Vladimirovich 2014-10-29 08:17:48 undefined struct 'pg_conn' on Windows7