From: | "Aryo Sukarno" <asukarno(at)hotmail(dot)com(dot)invalide> |
---|---|
To: | pgsql-general(at)postgresql(dot)org(dot)pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: libpq Newbie question |
Date: | 2001-11-30 09:43:58 |
Message-ID: | 9u7ke9$erq$1@news.tht.net |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general pgsql-interfaces |
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.
From | Date | Subject | |
---|---|---|---|
Next Message | Marooned | 2001-11-30 10:25:52 | Help |
Previous Message | Laszlo Hornyak | 2001-11-30 09:14:12 | java stored procedures |
From | Date | Subject | |
---|---|---|---|
Next Message | chengong@kobundo.ne.jp | 2001-11-30 12:59:28 | ECPG ERROR FOR "exec sql BEGIN" |
Previous Message | Denis Sbragion | 2001-11-30 08:47:58 | Re: Can a windows DLL have more than one process |