Re: [Boost-users] Errors compiling greg_month.cpp
A couple of days ago I requested help (below) as to why greg_month.cpp in
1.33.0 was giving errors under VC++ 6.0. Seeing no response, I guess I'll
just go back to 1.30.2, which was the version that has been working fine.
Sorry to have troubled you.
Doc
-----
I just upgraded to 1.33.0, and am getting a bunch of compilation errors
with the current version of greg_month.cpp:
The list of errors starts with:
c:\boost\boost_1_33_0\boost\date_time\gregorian\formatters.hpp(34) : error
C2977: 'date_formatter' : too many template arguments
c:\boost\boost_1_33_0\boost\date_time\date_formatting_limited.hpp(114) :
see declaration of 'date_formatter'
c:\boost\boost_1_33_0\boost\date_time\gregorian\formatters.hpp(40)
: see reference to function template instantiation 'class
std::basic_string
On 10/14/05, D. R. Evans
Using VC++ 6.0 on XP Service Pack 2. I would appreciate any gentle pointers as to what I might be doing wrong.
Technically, Visual Studio 6 does not support real C++ - it's lacking in alot of thing, namely in the template area.
c:\boost\boost_1_33_0\boost\date_time\gregorian\formatters.hpp(34) : error C2977: 'date_formatter' : too many template arguments
Too many template arguments... self explainatory. VS6 can't handle all the template args. I'd suggest using a compiler that has a hope of compiling standard c++. If you don't want to pay for VS.NET, there's always mingw and devc++ (among alot of others)
On Fri, 14 Oct 2005 14:27:07 -0600, D. R. Evans wrote
A couple of days ago I requested help (below) as to why greg_month.cpp in 1.33.0 was giving errors under VC++ 6.0. Seeing no response, I guess I'll just go back to 1.30.2, which was the version that has been working fine.
Sorry to have troubled you.
Sorry, I've been insanely busy...I missed your first mail. Are you compiling with bjam or in the IDE? I'm suspecting the IDE b/c most of the library compiles and builds on the VC6 regression platforms. There was a change in 1.33 to the facet code that VC6 can't compile and requires a new macro setting so that VC6 will use the old I/O code. Here's the relevant section from the build notes in case I'm guessing correctly: As of version 1.33, the date_time library introduced a new IO streaming system. Some compilers are not capable of utilizing this new system. For those compilers the earlier ("legacy") IO system is still available. Non-supported compilers will select the legacy system automatically but the user can force the usage of the legacy system by defining USE_DATE_TIME_PRE_1_33_FACET_IO. Whole thing is at: http://www.boost.org/doc/html/date_time/details.html#date_time.buildinfo HTH, Jeff ps: if that's not it please send me the whole bjam log in a private email and we will look at it.
participants (3)
-
Aaron Griffin
-
D. R. Evans
-
Jeff Garland