Re: C program compilation - Mailing list pgsql-interfaces

From Thomas Lockhart
Subject Re: C program compilation
Date
Msg-id 39FA2DEA.EB6F7DAA@alumni.caltech.edu
Whole thread Raw
In response to C program compilation  ("Gustavo R. Bonet" <gbonet@bna.com.ar>)
List pgsql-interfaces
> Like the documentation says, I'm using the following sentence to compile:
> gcc -o output_name -I /usr/include/pgsql -lpq myprogram.c
> /usr/lib/libpq.so: undefined reference to `crypt'
> collect2: ld returned 1 exit status

Try adding "-lcrypt" to the line.
                   - Thomas


pgsql-interfaces by date:

Previous
From: Thomas Lockhart
Date:
Subject: Re: Re: new maintainer for the ODBC driver?
Next
From: Thomas Lockhart
Date:
Subject: Re: Re: new maintainer for the ODBC driver?