Boost logo

Boost Users :

Subject: [Boost-users] [numeric] Errors compiling using gcc 4.6.2 on Solaris 10/SPARC
From: Ioannis Papadopoulos (ipapadop_at_[hidden])
Date: 2011-11-18 00:59:12


Hi,

I'm compiling Boost 1.48 on Solaris 10/gcc 4.6.2 for 32-bit and I use
the following in my project-config.jam (it doesn't compile otherwise):

using gcc : : : <compileflags>-mcpu=v9 <linkflags>-mcpu=v9 ;

I am getting the following errors in numeric:

./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:25:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<char,
char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:13:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<char, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:158:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<char,
char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:13:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<char, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:170:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<char,
char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:13:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<char, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:182:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<char,
unsigned char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:37:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<char, unsigned char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:194:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<char,
short int>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:49:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<char, short int>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:206:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<char,
short unsigned int>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:61:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<char, short unsigned int>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:218:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<char,
int>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:73:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<char, int>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:230:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<char,
unsigned int>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:85:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<char, unsigned int>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:242:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<char,
long long int>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:97:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<char, long long int>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:254:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<char,
long long unsigned int>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:109:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<char, long long unsigned int>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:266:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<char,
float>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:121:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<char, float>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:278:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<char,
double>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:133:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<char, double>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:290:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<char,
long double>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:145:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<char, long double>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:315:12:
error: redefinition of 'struct
boost::numeric::numeric_cast_traits<unsigned char, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:303:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<unsigned char, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:460:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<short
int, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:448:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<short int, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:605:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<short
unsigned int, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:593:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<short unsigned int, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:750:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<int,
char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:738:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<int, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:895:12:
error: redefinition of 'struct
boost::numeric::numeric_cast_traits<unsigned int, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:883:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<unsigned int, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:1040:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<long
long int, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:1028:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<long long int, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:1185:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<long
long unsigned int, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:1173:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<long long unsigned int, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:1330:12:
error: redefinition of 'struct
boost::numeric::numeric_cast_traits<float, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:1318:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<float, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:1475:12:
error: redefinition of 'struct
boost::numeric::numeric_cast_traits<double, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:1463:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<double, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:1620:12:
error: redefinition of 'struct boost::numeric::numeric_cast_traits<long
double, char>'
./boost/numeric/conversion/detail/preprocessed/numeric_cast_traits.hpp:1608:12:
error: previous definition of 'struct
boost::numeric::numeric_cast_traits<long double, char>'

I guess it cannot tell apart int8_t and char.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net