Re: C program compilation

From: Thomas Lockhart <lockhart(at)alumni(dot)caltech(dot)edu>
To: "Gustavo R(dot) Bonet" <gbonet(at)bna(dot)com(dot)ar>
Cc: pgsql-interfaces(at)postgresql(dot)org
Subject: Re: C program compilation
Date: 2000-10-28 01:37:46
Message-ID: 39FA2DEA.EB6F7DAA@alumni.caltech.edu
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-interfaces by date

  From Date Subject
Next Message Thomas Lockhart 2000-10-28 01:44:10 Re: Re: new maintainer for the ODBC driver?
Previous Message Ross J. Reedstrom 2000-10-27 23:15:28 Re: C program compilation