Re: libpq Newbie question - Mailing list pgsql-interfaces

From Aryo Sukarno
Subject Re: libpq Newbie question
Date
Msg-id 9u7ke9$erq$1@news.tht.net
Whole thread Raw
List 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.

pgsql-interfaces by date:

Previous
From: Denis Sbragion
Date:
Subject: Re: Can a windows DLL have more than one process
Next
From: "Ronggolawe"
Date:
Subject: libpq Newbie question