Re: multiple exception definition in pg_type.h -> error compiling postgres support in Qt with gcc v3.2 (SuSE 8.1)

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: multiple exception definition in pg_type.h -> error compiling postgres support in Qt with gcc v3.2 (SuSE 8.1)
Дата
Msg-id 23848.1034776118@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: multiple exception definition in pg_type.h -> error compiling postgres support in Qt with gcc v3.2 (SuSE 8.1)  ("ir. F.T.M. van Vugt bc." <ftm.van.vugt@foxi.nl>)
Ответы Re: multiple exception definition in pg_type.h -> error compiling postgres support in Qt with gcc v3.2 (SuSE 8.1)  ("ir. F.T.M. van Vugt bc." <ftm.van.vugt@foxi.nl>)
Список pgsql-bugs
"ir. F.T.M. van Vugt bc." <ftm.van.vugt@foxi.nl> writes:
> May I ask why you don't want to go with something like:

> #define DESCR(x) typedef int postgresql_foo_bar

Because it doesn't work.

$ cat z.c
typedef int postgresql_foo_bar;
typedef int postgresql_foo_bar;
typedef int postgresql_foo_bar;
$ gcc -c z.c
z.c:2: redefinition of `postgresql_foo_bar'
z.c:1: `postgresql_foo_bar' previously declared here
z.c:3: redefinition of `postgresql_foo_bar'
z.c:2: `postgresql_foo_bar' previously declared here

            regards, tom lane

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

Предыдущее
От: "ir. F.T.M. van Vugt bc."
Дата:
Сообщение: Re: multiple exception definition in pg_type.h -> error compiling postgres support in Qt with gcc v3.2 (SuSE 8.1)
Следующее
От: pgsql-bugs@postgresql.org
Дата:
Сообщение: Bug #798: Data in table causes server to terminate with signal 11