pg.ddx.io  pgsql-interfaces@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Please help with PostgreSQL
3+ messages / 3 participants
[nested] [flat]

* Please help with PostgreSQL
@ 2001-01-09 14:03 Javier Reniz <jreniz@usa.net>
  2001-01-10 09:36 ` Re: Please help with PostgreSQL Cedar Cox <cedarc@visionforisrael.com>
  2001-01-10 21:28 ` Re: Please help with PostgreSQL Richard Banks <rbanks@arel.com.au>
  0 siblings, 2 replies; 3+ messages in thread

From: Javier Reniz @ 2001-01-09 14:03 UTC (permalink / raw)
  To: pgsql-interfaces


I experieced problems with programming interfaces into PostgreSQL 6.5.3
(Machine: Red Hat 6.2 Standard Edition - Sucessfully Installation). I
installed this software from sources and I configure tcl and odbc extensions
and php module for Web Development and it works fine!.

But, I need create a GUI-Based Client Program in C or C++ (with GTK or
Tcl/Tk)....

I tried to compile the examples about Programming Interfaces (libpq, libpq++)
from published book about postgres but it returns an error for each call to
library "libpq-fe.h".

I don´t know if the problem is about enviroment variables (I programming as
root and/or Postgres user) or is the compilation instruction (gcc -o program.c
program.o)

Please, help me with any tip about compilation instruction for Postgres
developments and/or enviroment or another problem that you guess. ;-)

Thanks in advance. -


____________________________________________________________________
Get free email and a permanent address at http://www.netaddress.com/?N=1



^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Please help with PostgreSQL
  2001-01-09 14:03 Please help with PostgreSQL Javier Reniz <jreniz@usa.net>
@ 2001-01-10 09:36 ` Cedar Cox <cedarc@visionforisrael.com>
  1 sibling, 0 replies; 3+ messages in thread

From: Cedar Cox @ 2001-01-10 09:36 UTC (permalink / raw)
  To: Javier Reniz <jreniz@usa.net>; +Cc: pgsql-interfaces


On 9 Jan 2001, Javier Reniz wrote:
> I tried to compile the examples about Programming Interfaces (libpq, libpq++)
> from published book about postgres but it returns an error for each call to
> library "libpq-fe.h".

What error?  Is it file not found?... This from a Jan 3 message:

-> make produces an error message saying "libpq-fe.h: No such file or
-> directory". I have found documentation around the Internet saying that
-> this file is required by programs using libpq.so but have not been able
-> to find where I can get this header file from!!
-
-Make sure you have the 'postgresql-devel' RPM installed, and set
-POSTGRES_INCLUDE to /usr/include/pgsql.

So, make sure you have the 'postgresql-devel' RPM installed.

> I don´t know if the problem is about enviroment variables (I programming as
> root and/or Postgres user) or is the compilation instruction (gcc -o program.c
> program.o)

I would suggest not programming as root.

-Cedar




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Please help with PostgreSQL
  2001-01-09 14:03 Please help with PostgreSQL Javier Reniz <jreniz@usa.net>
@ 2001-01-10 21:28 ` Richard Banks <rbanks@arel.com.au>
  1 sibling, 0 replies; 3+ messages in thread

From: Richard Banks @ 2001-01-10 21:28 UTC (permalink / raw)
  To: Cedar Cox <cedarc@visionforisrael.com>; Javier Reniz <jreniz@usa.net>; +Cc: pgsql-interfaces


>
>On 9 Jan 2001, Javier Reniz wrote:
>
>I don´t know if the problem is about enviroment variables (I programming as
>root and/or Postgres user) or is the compilation instruction (gcc -o program.c
>program.o)

try gcc -o program program.c -I/usr/include/pgsql -lpq

You need the -lpq to tell the linker to reference libpq.so for the 
postgresql calls.
(and get rid of the .c in your output target unless you want to overwrite 
your source code)

Richard.

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2001-01-10 21:28 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2001-01-09 14:03 Please help with PostgreSQL Javier Reniz <jreniz@usa.net>
2001-01-10 09:36 ` Cedar Cox <cedarc@visionforisrael.com>
2001-01-10 21:28 ` Richard Banks <rbanks@arel.com.au>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox