You got the include directories right, but you didn't tell it to link in
the library by adding -lpq Try this:
cc -s -I/usr/local/pgsql/include -L/usr/local/pgsql/lib program.c -lm -lnsl
-lpq
-o program.exe
At 03:38 PM 3/29/00, Teruel Tony wrote:
>Hi,
>
>I'm interacting with postgeSQL using C
Teruel Tony wrote:
>Hi,
>
>I'm interacting with postgeSQL using C languaje,
>I'm having compilation problems.
>I set the compilation definition as:
>PGSQL_INCLUDE=/usr/local/pgsql/include/libpq
>
>(that's where I got the path to libpq)
>and I'm using something like this (I'm usin
Teruel Tony wrote:
>
> Hi,
>
> I'm interacting with postgeSQL using C languaje,
> I'm having compilation problems.
> I set the compilation definition as:
> PGSQL_INCLUDE=/usr/local/pgsql/include/libpq
>
> (that's where I got the path to libpq)
> and I'm using something like this (I'm using
> so
Use the -g option instead.
The following should work...
cc -g -I/usr/local/pgsql/include -o programe.exe -lpq program.c
Mikio
Teruel Tony wrote:
>
> Hi,
>
> I'm interacting with postgeSQL using C languaje,
> I'm having compilation problems.
> I set the compilation definition as:
> PGSQL_INCLU
Hi,
I'm interacting with postgeSQL using C languaje,
I'm having compilation problems.
I set the compilation definition as:
PGSQL_INCLUDE=/usr/local/pgsql/include/libpq
(that's where I got the path to libpq)
and I'm using something like this (I'm using
sockets) to compile:
cc -s -I/usr/local/pgs