Skip site navigation (1) Skip section navigation (2)

ECPG error message

From: Antonio Sergio de Mello e Souza <asergioz(at)bol(dot)com(dot)br>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: ECPG error message
Date: 2001-10-22 14:44:19
Message-ID: 3BD430C3.5000700@bol.com.br (view raw or flat)
Thread:
Lists: pgsql-interfaces
Hi all,


When I try to compile source code with these variable declarations:

  18 EXEC SQL BEGIN DECLARE SECTION;
  19 struct FIELDS_t {
  20     char         cod[16];
  21     long double  val;
  22 } fields;
  23 char command[100];
  24 EXEC SQL END DECLARE SECTION;

  $ ecpg -t -I /usr/local/pgsql/include -o tstexecute.c tstexecute.ec

I get this error message:

  tstexecute.ec:20: ERROR: parse error at or near "double"

What's the problem with long double?
Isn't it a standard C data type?

I'm using PostgreSQL 7.1.2, compiled with options:
     
  --with-tcl --enable-locale --enable-multibyte=LATIN1

and my system is a:

  Linux version 2.2.16-13cl ( root(at)mapi2(dot)conectiva(dot)com(dot)br 
<mailto:root(at)mapi2(dot)conectiva(dot)com(dot)br> ) (gcc version
  egcs-2.91.66 19990314/Linux (egcs-1.1.2 release)) #1 seg jun 26 17:15:04
  BRST 2000
  Detected 398201 kHz processor.
  Memory: 127848k/131008k available (1028k kernel code, 416k reserved,
  1648k data, 68k init)
  CPU: Intel Celeron (Mendocino) stepping 05
.

Regards,

Antonio Sergio





Responses

pgsql-interfaces by date

Next:From: Joel Mc GrawDate: 2001-10-22 17:45:23
Subject: Python interface and Money?
Previous:From: Edward PilipczukDate: 2001-10-22 08:34:59
Subject: ECPG - connection name in "EXEC SQL AT ... " statement

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group