Re: C & C ++Program Problem - Mailing list pgsql-general

From Martijn van Oosterhout
Subject Re: C & C ++Program Problem
Date
Msg-id 20020516110555.C16632@svana.org
Whole thread Raw
In response to C & C ++Program Problem  (Arindam Haldar <arindamhaldar@hotpop.com>)
List pgsql-general
On Thu, May 16, 2002 at 04:07:38AM +0530, Arindam Haldar wrote:
> hi all,
> am trying to use C & C++ libraries with postgresql 7.2.
> while compiling a sample programe(attached) there were thse errors
> encounterd !..
>
> [arindam@my src]$
> [arindam@my src]$ gcc egTry.c

Try: gcc egTry.c -lpq

(or is it -lpg?)

The compiler needs to know which library contains the symbols you're
missing.

HTH,
--
Martijn van Oosterhout   <kleptog@svana.org>   http://svana.org/kleptog/
> Canada, Mexico, and Australia form the Axis of Nations That
> Are Actually Quite Nice But Secretly Have Nasty Thoughts About America

pgsql-general by date:

Previous
From: Martijn van Oosterhout
Date:
Subject: Re: Help Please on partial index
Next
From: "Dorward Villaruz"
Date:
Subject: Re: some questions