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

From: "ir(dot) F(dot)T(dot)M(dot) van Vugt bc(dot)" <ftm(dot)van(dot)vugt(at)foxi(dot)nl>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Cc: Peter Eisentraut <peter_e(at)gmx(dot)net>, pgsql-bugs(at)postgreSQL(dot)org
Subject: Re: multiple exception definition in pg_type.h -> error compiling postgres support in Qt with gcc v3.2 (SuSE 8.1)
Date: 2002-10-16 21:04:32
Message-ID: 200210162304.32295.ftm.van.vugt@foxi.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

> > 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;
> $ gcc -c z.c
> z.c:2: redefinition of `postgresql_foo_bar'
> z.c:1: `postgresql_foo_bar' previously declared here

Ah, you got me there, Tom.

Guess I had to know better than to mess with you C-guys unless I'd better make
sure I'd double-checked ;-))

Anyway, thanx again and guys are doing a great job !!

Frank.

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2002-10-17 03:44:14 Re: bug in create table with serial
Previous Message Cristóvão Dalla Costa 2002-10-16 20:43:25 bug in create table with serial