This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

cmath 'ceil' is already defined in this scope


 
Hi all,
I'm currently trying to compile an open source (open diameter) on my
Mandrake 10.1 with gcc 3.3.1, that is intented to work fine, but I'm
experiencing a few errors that seem to be related to my c++ standard
lib.
 Here are my logs :
g++ -DPACKAGE_NAME=\"OpenDiameter\" -DPACKAGE_TARNAME=\"opendiameter\" 
-DPACKAGE_VERSION=\"1.0.7-g\" "-DPACKAGE_STRING=\"OpenDiameter
1.0.7-g\"" 
-DPACKAGE_BUGREPORT=\"yohba@tari.toshiba.com\"
-DPACKAGE=\"opendiameter\" 
-DVERSION=\"1.0.7-g\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1
-DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1
-DHAVE_MEMORY_H=1
-DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1
-DHAVE_UNISTD_H=1
-DHAVE_DLFCN_H=1 -DHAVE_IFADDRS_H=1 -DHAVE_SHADOW_H=1 -DHAVE__BOOL=1
-DHAVE_STDBOOL_H=1 -DHAVE_GETIFADDRS=1 -I. -I. -Wall -Wno-sign-compare
-I/home/sai/xerces/xerces-c-src2_4_0//include
-I/home/sai/xerces/xerces-c-src2_4_0//include/xercesc
-I/home/sai/Ace/ACE_wrappers/ -I/home/sai/boost_1_32_0/ -I../include
-DOS_LINUX -g -O2 -MT comlist.lo -MD -MP -MF .deps/comlist.Tpo -c
comlist.cxx -o comlist.o In file included from
/usr/include/c++/3.3.1/bits/locale_facets.tcc:41,
from /usr/include/c++/3.3.1/locale:47,
from /usr/include/c++/3.3.1/bits/ostream.tcc:37,
from /usr/include/c++/3.3.1/ostream:535,
from /usr/include/c++/3.3.1/iterator:70,
from
/home/sai/boost_1_32_0/boost/spirit/core/scanner/scanner.hpp:12,
from
/home/sai/boost_1_32_0/boost/spirit/core/parser.hpp:14,
from /home/sai/boost_1_32_0/boost/spirit/core.hpp:30,
from parser_avpvalue.h:48,
from comlist.cxx:38:
/usr/include/c++/3.3.1/cmath:256: error: `ceil' is already declared in
this scope
/usr/include/c++/3.3.1/cmath:330: error: `floor' is already declared in
this scope
make[1]: *** [comlist.lo] Erreur 1
make[1]: Leaving directory
`/home/sai/openDiameter/opendiameter-1.0.7-g/libdiamparser'
make: *** [all-recursive] Erreur 1

This message seems to say that there are twins 'ceil' and 'floor'
functions in the STL I'm using (libstdc++5.so) ?
Isn't that curious ? 
Is it possible that my "down-grade" of compilator, from gcc 3.4.1 to gcc
3.3.1 (for ACE library dependency compilation purpose) could be the
source of my problems ? In that case, what should I do to circumveign to
that issue without changing my gcc version ?
Whatever, I would be very glad if somebody could give me a few
information to help me solve that problem, because I really can't
explain what's happening to me...
Thanks a lot in advance,
Antoine.



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]