On Thu, 29 Nov 2001 22:34:32 -0800, Ronggolawe wrote:
> Error:
> Undefined first referenced
> symbol in file
> PQresultStatus /var/tmp/ccED8fcw.o PQclear
> /var/tmp/ccED8fcw.o PQexec
> /var/tmp/ccED8fcw.o PQerrorMessage
> /var/tmp/ccED8fcw.o PQstatus
> /var/tmp/ccED8fcw.o PQconsumeInput
> /var/tmp/ccED8fcw.o PQnotifies
> /var/tmp/ccED8fcw.o PQfinish
> /var/tmp/ccED8fcw.o PQsetdbLogin
> /var/tmp/ccED8fcw.o ld: fatal: Symbol referencing errors. No output
> written to a.out collect2: ld returned 1 exit status
>
>
>
I assume you doing:
cc -o output file.c
instead of:
cc -o output file.c -I/opt/local/include -L/opt/local/lib -lpq
Note the compiler switch, I think that error was produce because the
compiler can't find libpq.