Re: ecpg -C INFORMIX

From: Michael Fuhr <mike(at)fuhr(dot)org>
To: "Van Tress,Michael J - PGPW" <mjvantress(at)bpa(dot)gov>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: ecpg -C INFORMIX
Date: 2005-09-09 21:41:52
Message-ID: 20050909214152.GA35054@winnie.fuhr.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Fri, Sep 09, 2005 at 02:18:07PM -0700, Van Tress,Michael J - PGPW wrote:
> I'm in the process of porting INFORMIX ESQL/C code to Postgres.
> I've had great success until I've come upon Informix's datetime.h functions.
> The code compiles, but when it comes time to link, I get the following error:
>
> gcc -L/usr/local/postgresql-8.0.3/lib -o temp_fcstPg temp_fcst.o timechar.o stresslib.o -lm -lpq -lecpg
> temp_fcst.o: In function `main':
> temp_fcst.o(.text+0x1fc): undefined reference to `dttoasc'
> collect2: ld returned 1 exit status
> make: *** [temp_fcstPg] Error 1

Try linking with -lecpg_compat instead of -lecpg.

--
Michael Fuhr

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Michael Fuhr 2005-09-09 21:50:28 Re: ERROR: bogus varno
Previous Message Bricklen Anderson 2005-09-09 21:35:07 ERROR: bogus varno