Postgres problem

From: "Prof(dot) L M Patnaik" <lalit(at)micro(dot)iisc(dot)ernet(dot)in>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Postgres problem
Date: 2001-04-20 01:33:07
Message-ID: Pine.SGI.4.10.10104191831150.839-100000@micro.iisc.ernet.in
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces


Hello:

I am having problem interfacing the postgres database with the
frontend(libpq),i.e using C.Database runs fine.

PROBLEMS ARE:
1)When compiling the C-program given in the
example for connecting the database to the
frontend using
$gcc -I /home/guest/pgsql/include test.c

output:
/tmp/ccwWFbHo.o:In function 'exit_nicely':
/tmp/ccwWFbHo.o(.text+0x8):undefined referance to 'PQfinish'

/tmp/ccwWFbHo.o:In function 'main':
/tmp/ccwWFbHo.o(.text+0x66):undefined referance to
'PQsetdblogin'

/tmp/ccwWFbHo.o(.text+0x66):undefined referance to 'PQstatus'

...............................................................

2)When I want to use the command
$createlang c (dbname)
OUTPUT:
createlang:missing required argument PGLIB directory.

...............................................................


I shall be grateful if you reply giving me suggestion to solve
the problems.

Thanking you

With regards

Simanchal

c/o Prof L M Patnaik

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Brendan Guenther 2001-04-20 11:11:44 Re: Now for the VARDATA, VARSIZE, and VARHDRSZ stuff
Previous Message Lonnie Cumberland 2001-04-19 21:02:50 Re: Cache lookup error?