conflicting types for `struct Oid'

From: Corrado Giacomini <c(dot)giacomini(at)acresearch(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: conflicting types for `struct Oid'
Date: 2001-01-11 17:18:45
Message-ID: 3A5DEAF5.35931339@acresearch.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Dear All,
I currently developing a project using SNMP++ and posgresql (7.0.3)
libpq++
Since both SNMP and posgresql define an Oid type

typedef unsigned int Oid (postgresql)
struct Oid (SNMP++)

At compilation time I get this error :

/deliveries/external/SNMP++/3.4Patched/snmp++/include/oid.h:94:
conflicting types for `struct Oid'
/deliveries/external/postgres/7.0.3/include/postgres_ext.h:28: previous
declaration as `typedef unsigned int Oid'

I tryed to encampsulate my postgres derived classes into a namespace but
then I got a lot of other compilation errors
where in my code I am using STL classes.

Is there e simple solution to my problem ? is there a way to use
namespace in order to avoid conflicting types ?

Thanks in advance to everybody,

-Corrado

Browse pgsql-hackers by date

  From Date Subject
Next Message Mikheev, Vadim 2001-01-11 17:20:19 RE: Lock on arbitrary string feature
Previous Message Hannu Krosing 2001-01-11 17:10:11 Re: UNDER?