From: Gustavo R. Bonet <gbonet@bna.com.ar>
To: pgsql-interfaces@postgresql.org
Subject: C program compilation
Date: Fri, 27 Oct 2000 13:07:12 -0300
Message-ID: <NDBBLBDCDKFEOBJMLCEDGEGNCAAA.gbonet@bna.com.ar> (raw)
I'm a beginner in PostGreSQL and I'm trying to meka my first interface with
a C
program.
Like the documentation says, I'm using the following sentence to compile:
gcc -o output_name -I /usr/include/pgsql -lpq myprogram.c
But, in two diferent Linux servers the answer was:
/usr/lib/libpq.so: undefined reference to `crypt'
collect2: ld returned 1 exit status
I have tryed with millons ways changing the order, including other paths,
etc. ... and
nothing.
If you have the answer or can guide me to some "doc", please response this
mail to:
gbonet@bna.com.ar
Thank you !
Gustavo R. Bonet
Buenos Aires
Argentina
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: gbonet@bna.com.ar
Subject: Re: C program compilation
In-Reply-To: <NDBBLBDCDKFEOBJMLCEDGEGNCAAA.gbonet@bna.com.ar>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
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