bug-commoncpp
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

error compiling Common C++ under solaris


From: Mario Rodriguez Villanea
Subject: error compiling Common C++ under solaris
Date: Tue, 02 Jan 2007 21:58:19 -0000

I'm using Common C++ in solaris, but when I include math.h I got the error below. If I compile my application under linux the application works fine. The problem is that math.h defines an struct named exception which conflicts with the #include <exception> declared in exception.h. Any suggestion ?



g++ -c Lock.cpp -L/usr/local/lib -Iincludes -I. -I/usr/include -Wall -O2 -MD -D_GNU_SOURCE -D_THREAD_SAFE -g3 -pg -DSOLARIS -D__EXTENSIONS__ -D_REENTRANT
In file included from includes/cc++/exception.h:25,
                 from includes/cc++/address.h:20,
                 from includes/cc++/socket.h:15,
                 from includes/NodesMetadata.h:29,
                 from includes/Msg.h:40,
                 from includes/DsmController.h:33,
                 from Lock.cpp:18:
/usr/local/lib/gcc-lib/sparc-sun-solaris2.8/2.95.2/include/exception:13: redefinition of `struct exception'
/usr/include/math.h:92: previous definition here
In file included from includes/Msg.h:40,
                 from includes/DsmController.h:33,
                 from Lock.cpp:18:
make[1]: *** [Lock.o] Error 1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]