Mario Rodriguez - 2007-01-02

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