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