Re: What about libpq-fe.h ?

From: "Tim Barnard" <tbarnard(at)povn(dot)com>
To: "Done" <Taurus2000(at)t-online(dot)de>
Cc: <pgsql-general(at)postgresql(dot)org>
Subject: Re: What about libpq-fe.h ?
Date: 2002-02-21 21:05:29
Message-ID: 023601c1bb1b$7f9707c0$a519af3f@hartcomm.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces

You can find what your looking for in libpq-int.h, but it's advised that you
not include that header in your applications as it's not the official api
header (libpq-fe.h is). You risk your app breaking in future revisions (see
the comments at the top of the file). Perhaps you should consider rethinking
what you're trying to do unless you *really* need this.

Tim

----- Original Message -----
From: "Done" <Taurus2000(at)t-online(dot)de>
To: <pgsql-interfaces(at)postgresql(dot)org>
Sent: Saturday, February 16, 2002 3:21 PM
Subject: What about libpq-fe.h ?

> Hi !
>
> I have small problem with compiling a programm which uses
> libpq-fe.h ($Id: libpq-fe.h,v 1.80 2001/11/08 20:37:52 momjian Exp $) ...
> When i wana compile the programm i get the error
> 'sizeof appliend to an incomplete type' for statement sizeof(PGconn)
> so the question is: for the statement 'typedef struct pg_conn PGconn;'
> what about the struct pg_conn ?
> how get libpq-fe.h access to struct pg_conn ?
> and finally ... how can i fix it ?
>
> mfg,
> Antonio
>
> ---------------------------(end of broadcast)---------------------------
> TIP 5: Have you checked our extensive FAQ?
>
> http://www.postgresql.org/users-lounge/docs/faq.html
>

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Oliver Elphick 2002-02-21 21:12:45 Re: using libpq++.h
Previous Message Doug McNaught 2002-02-21 21:04:04 Re: VERY basic

Browse pgsql-interfaces by date

  From Date Subject
Next Message Oliver Elphick 2002-02-21 21:12:45 Re: using libpq++.h
Previous Message Tim Barnard 2002-02-21 20:55:27 Re: using libpq++.h