Precompilation error (ecpg)

Поиск
Список
Период
Сортировка
От pawel
Тема Precompilation error (ecpg)
Дата
Msg-id 385583B2.A836EB30@math.jhu.edu
обсуждение исходный текст
Список pgsql-general
Hi,
when trying to precompile the following code with
> ecpg -I/usr/include/pgsql ecpg_test.pc

I am getting the following error message

ecpg_test.pc:27: invalid datatype 'zipcode_record'

this is probably something very simple, but I don't get this error,
when processing the code with Oracle.
I would appreciate any feedback.
thanks
pawel

--------  ecpg_test.pc file  -------------
#include <stdio.h>
#include <string.h>

typedef struct {
  int zip;
} zipcode_record;

EXEC SQL INCLUDE sqlca;
void add_customer();

void main() {
/* just a test */
}

void add_customer() {
  EXEC SQL BEGIN DECLARE SECTION;
    zipcode_record  zrec;      /* line 27 */
  EXEC SQL END DECLARE SECTION;
}





В списке pgsql-general по дате отправления:

Предыдущее
От: Lamar Owen
Дата:
Сообщение: Re: [GENERAL] Re: With what options RPM was compiled? ( Was: CzechWin1250 sorting q)
Следующее
От: Marcos Hernandez
Дата:
Сообщение: subscribe