Re: [GENERAL] Database connectivity using ECPG

2006-07-13 Thread Shoaib Mir
Hi Jasbinder,You will have to build the libecpg lib from source first and then you can build your C source (got from .pgc file using ecpg) using something like this: cc -I -c sample.c cc -o sample sample.o -L -lecpgThanks,Shoaib MirEnterpriseDBOn 7/13/06, John Purser < [EMAIL PROTECTED]> wrote:On

Re: [GENERAL] Database connectivity using ECPG

2006-07-13 Thread John Purser
On Thu, 13 Jul 2006 13:22:49 -0400 "Jasbinder Bali" <[EMAIL PROTECTED]> wrote: > Hi, > > I'm using ECPG to connect to my postgres database. Doing it for the > very first time in my life. > > The name of my database is postgres and uses a trusted connection. > So, i don't think it needs any authe

Re: [GENERAL] Database connectivity using ECPG

2006-07-13 Thread Merlin Moncure
On 7/13/06, Jasbinder Bali <[EMAIL PROTECTED]> wrote: Hi, I'm using ECPG to connect to my postgres database. Doing it for the very first time in my life. In function `main':ecpg_test.c:(.text+0x5d): undefined reference to `ECPGconnect' it looks like you are not linking to the ecpg library.

[GENERAL] Database connectivity using ECPG

2006-07-13 Thread Jasbinder Bali
Hi,I'm using ECPG to connect to my postgres database. Doing it for the very first time in my life.The name of my database is postgres and uses a trusted connection. So, i don't think it needs any authentication parameteres like a user name and password.I have the follwoing line of code in my .pgc