Boost logo

Boost :

From: Peter Simons (simons_at_[hidden])
Date: 2005-04-11 08:29:56


Hi,

when using Boost with the latest GCC CVS-HEAD version, I get
a warning from <boost/config/compiler/gcc.hpp> at this point:

  //
  // versions check:
  // we don't know gcc prior to version 2.90:
  #if (__GNUC__ == 2) && (__GNUC_MINOR__ < 90)
  # error "Compiler not configured - please reconfigure"
  #endif
  //
  // last known and checked version is 4.0 (Pre-release):
  #if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 0))
  # if defined(BOOST_ASSERT_CONFIG)
  # error "Unknown compiler version - please run the configure tests and report the results"
  # else
  # warning "Unknown compiler version - please run the configure tests and report the results"
  # endif
  #endif

When called with '-v', my GCC reports itself as:

  gcc-4.1.0 (GCC) 4.1.0 20050329 (experimental)

I have also run the configure script and obtained this user
configuration file as a result:

 | // Use this file to define a site and compiler specific
 | // configuration policy, this version was auto-generated by
 | // configure on Mon Apr 11 15:26:50 CEST 2005
 | // With the following options:
 | // CXX = g++
 | // CXXFLAGS = -I./../.. -I./../../libs/config/test -g -O2 -DBOOST_NO_CONFIG
 | // LDFLAGS =
 | // LIBS = -lrt -lm -lpthread
 |
 | [...]
 |
 | #ifndef BOOST_NO_CONFIG
 | # define BOOST_NO_CONFIG
 | #endif
 |
 | [...]
 |
 | //
 | // options added by configure:
 | //
 | #define BOOST_MSVC6_MEMBER_TEMPLATES
 | #define BOOST_HAS_UNISTD_H
 | #define BOOST_HAS_STDINT_H
 | #define BOOST_HAS_SIGACTION
 | #define BOOST_HAS_SCHED_YIELD
 | #define BOOST_HAS_PTHREADS
 | #define BOOST_HAS_PTHREAD_YIELD
 | #define BOOST_HAS_PTHREAD_MUTEXATTR_SETTYPE
 | #define BOOST_HAS_PARTIAL_STD_ALLOCATOR
 | #define BOOST_HAS_NRVO
 | #define BOOST_HAS_NL_TYPES_H
 | #define BOOST_HAS_NANOSLEEP
 | #define BOOST_HAS_LONG_LONG
 | #define BOOST_HAS_GETTIMEOFDAY
 | #define BOOST_HAS_DIRENT_H
 | #define BOOST_HAS_CLOCK_GETTIME
 | #define BOOST_NO_IS_ABSTRACT

I hope this helps in any way. If there's anything else I can
do to help getting gcc 4.1.x supported, let me know.

Peter


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