Re: ecpg -C INFORMIX - Mailing list pgsql-general

From Michael Fuhr
Subject Re: ecpg -C INFORMIX
Date
Msg-id 20050909214152.GA35054@winnie.fuhr.org
Whole thread Raw
In response to ecpg -C INFORMIX  ("Van Tress,Michael J - PGPW" <mjvantress@bpa.gov>)
List 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

pgsql-general by date:

Previous
From: Bricklen Anderson
Date:
Subject: ERROR: bogus varno
Next
From: Michael Fuhr
Date:
Subject: Re: ERROR: bogus varno