Re: C & C ++Program Problem

From: Martijn van Oosterhout <kleptog(at)svana(dot)org>
To: Arindam Haldar <arindamhaldar(at)hotpop(dot)com>
Cc: pgsql-general(at)postgresql(dot)org, pgsql-interfaces(at)postgresql(dot)org
Subject: Re: C & C ++Program Problem
Date: 2002-05-16 01:05:56
Message-ID: 20020516110555.C16632@svana.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general pgsql-interfaces

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(at)my src]$
> [arindam(at)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(at)svana(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Darren Ferguson 2002-05-16 02:19:51 Re: books on pl/pgsql
Previous Message Martijn van Oosterhout 2002-05-16 01:01:14 Re: Help Please on partial index

Browse pgsql-interfaces by date

  From Date Subject
Next Message Arindam Haldar 2002-05-16 06:53:19 Re: C & C ++Program Problem
Previous Message jtv 2002-05-16 00:20:59 Re: [INTERFACES] C & C ++Program Problem