Boost logo

Boost Users :

From: acid_til bluc_at_[hidden])
Date: 2003-02-04 10:19:31


Hi !!

When trying to compile a simple program (just a main and nothing in
it) I get a lot of compile error... I'm using VC 6.0 SP5, STLport
4.5.3 and boost 1.29.

This is what I include in the program :

#include <iostream>
#include <boost/python.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>

Here are the error messages :
boost\date_time\compiler_config.hpp(33) : error C2782: ' __cdecl
_STL::abs()' : template parameter 'T' is ambiguous
        could be 'long double'
        or 'const struct _STL::complex<long double> &'
boost\date_time\compiler_config.hpp(33) : error C2785: ' __cdecl
_STL::abs()' and 'long double __cdecl _STL::abs(const struct
_STL::complex<long double> &)' have different return types
        \boost\date_time\compiler_config.hpp(30) : see declaration of
'abs'
boost\date_time\compiler_config.hpp(33) : error C2782: ' __cdecl
_STL::abs()' : template parameter 'T' is ambiguous
        could be 'double'
        or 'const struct _STL::complex<double> &'
boost\date_time\compiler_config.hpp(33) : error C2785: ' __cdecl
_STL::abs()' and 'double __cdecl _STL::abs(const struct
_STL::complex<double> &)' have different return types
        boost\date_time\compiler_config.hpp(30) : see declaration of
'abs'
boost\date_time\compiler_config.hpp(33) : error C2782: ' __cdecl
_STL::abs()' : template parameter 'T' is ambiguous
        could be 'float'
        or 'const struct _STL::complex<float> &'
boost\date_time\compiler_config.hpp(33) : error C2785: ' __cdecl
_STL::abs()' and 'float __cdecl _STL::abs(const struct
_STL::complex<float> &)' have different return types
        boost\date_time\compiler_config.hpp(30) : see declaration of
'abs'

Has this been reported ??? Are Boost.Python and posix_time
incompatible ??? If not, can someone point to a solution.

Thanks a lot for your time.

Luc.


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