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

From Tom Lane
Subject Re: multiple exception definition in pg_type.h -> error compiling postgres support in Qt with gcc v3.2 (SuSE 8.1)
Date
Msg-id 23848.1034776118@sss.pgh.pa.us
Whole thread Raw
In response to 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>)
Responses Re: multiple exception definition in pg_type.h -> error compiling postgres support in Qt with gcc v3.2 (SuSE 8.1)
List 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 by date:

Previous
From: "ir. F.T.M. van Vugt bc."
Date:
Subject: Re: multiple exception definition in pg_type.h -> error compiling postgres support in Qt with gcc v3.2 (SuSE 8.1)
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #798: Data in table causes server to terminate with signal 11