Boost logo

Boost :

From: Beman Dawes (bdawes_at_[hidden])
Date: 2002-06-30 13:18:55


I'm suspicious of several macros reported by libs/config/config_info.cpp
for GCC 3.1 (see macros section below):

GNU C++ version 3.1
     __cplusplus =1
     __STDC__ =1
     _WCHAR_T [no value]
     _WCHAR_T_DEFINED [no value]
     __GNUC__ =3
     __GNUC_MINOR__ =1
     __GNUG__ =3
     __VERSION__ ="3.1"
     __REGISTER_PREFIX__ [no value]
     __USER_LABEL_PREFIX__ =_
     __EXCEPTIONS =1
     unix =1
     __i386__ =1
     __unix =1
     __i386 =1
     i386 =1
     _WCHAR_T [no value]
     __STDC_HOSTED__ =1

*********************************************************************

GNU libstdc++ version 20020514
     __GLIBCPP__ =20020514
     _GLIBCPP_VERSION ="3.1.0"

*********************************************************************

Detected Platform: Cygwin
     Type char is signed
     Type wchar_t is unsigned
     byte order for type short =0 8
     byte order for type int =0 8 16 24
     byte order for type long =0 8 16 24
     sizeof(wchar_t) =2
     sizeof(short) =2
     sizeof(int) =4
     sizeof(long) =4
     sizeof(float) =4
     sizeof(double) =8
     sizeof(long double) =12
     CHAR_BIT =8
     CHAR_MAX =127
     SHRT_MAX =32767
     INT_MAX =2147483647
     LONG_MAX =2147483647L
     LONG_LONG_MAX =9223372036854775807LL
     _POSIX_JOB_CONTROL =1
     _POSIX_SAVED_IDS =0
     _POSIX_THREAD_ATTR_STACKSIZE =1
     _POSIX_THREAD_PRIORITY_SCHEDULING =1
     _POSIX_THREAD_PROCESS_SHARED =1
     _POSIX_THREAD_SAFE_FUNCTIONS =1
     _POSIX_THREADS =1
     _POSIX_VERSION =199009L

*********************************************************************

Boost version 102900
     BOOST_DECL [no value]
     BOOST_HAS_DIRENT_H [no value]
     BOOST_HAS_GETTIMEOFDAY [no value]
     BOOST_HAS_LONG_LONG [no value]
     BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE [no value]
     BOOST_HAS_PTHREADS [no value]
     BOOST_HAS_SCHED_YIELD [no value]
     BOOST_HAS_THREADS [no value]
     BOOST_HAS_UNISTD_H [no value]
     BOOST_MSVC6_MEMBER_TEMPLATES [no value]
     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
     BOOST_NESTED_TEMPLATE =template
     BOOST_NO_CWCHAR [no value]
     ^^^^^^^^^^^^^^^
     BOOST_NO_CWCTYPE [no value]
     ^^^^^^^^^^^^^^^^
     BOOST_NO_HASH [no value]
     BOOST_NO_SLIST [no value]
     BOOST_NO_STD_WSTRING [no value]
     ^^^^^^^^^^^^^^^^^^^^
     BOOST_NO_SWPRINTF [no value]
     BOOST_STD_EXTENSION_NAMESPACE =std

Surely those can't be correct?

It would be helpful if someone knowledgeable about GCC could suggest fixes.
They probably involve not just boost/config/compiler/gcc.hpp, but also
boost/config/platform/cygwin.hpp, and boost/config/stdlib/libstdcpp3.hpp

Thanks,

--Beman


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk