Jeff Lu writes:

> $ make intrasend
> gcc -o /c/inetpub/wwwroot/cgi-bin/intrasend.exe intrasend.c
> intrautils.c -I/usr/
> local/pgsql/include -L/usr/local/pgsql/lib

-lpq

> intrautils.c:7: warning: initialization makes integer from pointer without a
> cas
> t
> /c/TEMP/ccXES02E.o(.text+0x32c):intrasend.c: undefined reference to
> `PQconnectdb'
[...]

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/


Fri, 9 Mar 2001 21:58:43 +0100 (CET)
Peter Eisentraut <peter_e@gmx.net>
Re: undefined reference pq
Hi,

Can some one tell me what am I missing?

$ make intrasend
gcc -o /c/inetpub/wwwroot/cgi-bin/intrasend.exe intrasend.c
intrautils.c -I/usr/
local/pgsql/include -L/usr/local/pgsql/lib
intrautils.c:7: warning: initialization makes integer from pointer without a
cas
t
/c/TEMP/ccXES02E.o(.text+0x32c):intrasend.c: undefined reference to
`PQconnectdb
'
/c/TEMP/ccXES02E.o(.text+0x346):intrasend.c: undefined reference to
`PQstatus'
/c/TEMP/ccXES02E.o(.text+0x37b):intrasend.c: undefined reference to
`PQerrorMess
age'
/c/TEMP/ccXES02E.o(.text+0x3d1):intrasend.c: undefined reference to `PQexec'
/c/TEMP/ccXES02E.o(.text+0x3eb):intrasend.c: undefined reference to
`PQresultSta
tus'
/c/TEMP/ccXES02E.o(.text+0x41d):intrasend.c: undefined reference to
`PQclear'
/c/TEMP/ccXES02E.o(.text+0x42f):intrasend.c: undefined reference to
`PQfinish'
/c/TEMP/ccXES02E.o(.text+0x457):intrasend.c: undefined reference to
`PQntuples'
/c/TEMP/ccXES02E.o(.text+0x47c):intrasend.c: undefined reference to
`PQgetvalue'

/c/TEMP/ccXES02E.o(.text+0x4a3):intrasend.c: undefined reference to
`PQclear'
/c/TEMP/ccXES02E.o(.text+0x4b5):intrasend.c: undefined reference to
`PQfinish'
collect2: ld returned 1 exit status
make: *** [intrasend] Error 1



Tue, 20 Mar 2001 22:21:38 -0500
"Jeff Lu" <jklcom@mindspring.com>
undefined reference pq