Re: [GENERAL] Libpq problems

2000-03-29 Thread Charles Tassell
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

Re: [GENERAL] Libpq problems

2000-03-29 Thread Oliver Elphick
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

Re: [GENERAL] Libpq problems

2000-03-29 Thread Lamar Owen
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

Re: [GENERAL] Libpq problems

2000-03-29 Thread Mikio-Yves Matsuo
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

[GENERAL] Libpq problems

2000-03-29 Thread Teruel Tony
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