Re: Problems compiling test program program form pgsql

From: "Karl F(dot) Larsen" <k5di(at)zianet(dot)com>
To: Hugh Lawson <hlawson(at)triad(dot)rr(dot)com>
Cc: Miguel Fernandez <miguelfernandez(at)bridge(dot)com(dot)br>, pgsql-novice(at)postgresql(dot)org
Subject: Re: Problems compiling test program program form pgsql
Date: 2000-06-08 22:50:24
Message-ID: Pine.LNX.4.10.10006081649250.800-100000@cannac.ampr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-novice


Hi Hugh, it looks like -l must have worked. I use that when I need the
math libs.

On Sat, 3 Jun 2000, Hugh Lawson wrote:

> On Sat, 3 Jun 2000, Miguel Fernandez wrote:
>
> > Hi , I've got a problem compiling the test program in the programmers guide.
> > t frist how I do to link libpg.a in gcc and g++ ?
> >
> > Later I've got the screen :
> >
> > $bash: g++ test.C -o test.o -o test /usr/lib/libpg.a // my libpg.a is in /usr/lib
> > /usr/lib/libpq.a (fe-auth.o) : in function 'pg_password_sendauth' :
> > fe_auth.o(.text+0x27):undefined reference to 'crypt'
>
> I believe that if you add a '-l' option to your compile command it will
> work:
>
> <To your presend command add> -lcrypt
>
>
>
>
> --
> Hugh Lawson
> Greensboro, North Carolina
> hlawson(at)triad(dot)rr(dot)com
>
>
>
>

Yours Truly,

- Karl F. Larsen, k5di(at)arrl(dot)net (505) 524-3303 -

In response to

Browse pgsql-novice by date

  From Date Subject
Next Message Colin Woolmer 2000-06-09 05:51:35 Re: : permission denied initdb: 34: Syntax error: Bad fd number
Previous Message Karl F. Larsen 2000-06-08 22:46:25 Re: : permission denied initdb: 34: Syntax error: Bad fd number