fstream_test.cpp won't compile using VC++ 6.0

I receive errors when I try to compile fstream_test.cpp using Microsoft Visual C++ 6.0. The first error I receive is this: fstream_test.cpp c:\boost\include\boost-1_32\boost\filesystem\fstream.hpp(29): error C2504: 'basic_filebuf<char,char_traits<char> >': base class undefined c:\projects\examples\fstream_test.cpp(27): see reference to class template instantiation 'boost::filesystem::basic_filebuf<char,char_traits<char> >' being compiled Is there a workaround for this? Thanks.

"Jason Heyes" <jasonheyes@optusnet.com.au> wrote in message news:011101c570ec$e6a34660$8a661fd3@yourmig0zhgr96...
I receive errors when I try to compile fstream_test.cpp using Microsoft Visual C++ 6.0. The first error I receive is this:
fstream_test.cpp c:\boost\include\boost-1_32\boost\filesystem\fstream.hpp(29): error C2504: 'basic_filebuf<char,char_traits<char> >': base class undefined c:\projects\examples\fstream_test.cpp(27): see reference to class template instantiation 'boost::filesystem::basic_filebuf<char,char_traits<char> >' being compiled
That test is passing with VC++ 6.0 on several regression tester's machines, so there must be a bit more to the story than just the usual VC++ 6.0 woes. Do you have all the service packs installed?
Is there a workaround for this? Thanks.
One workaround is to upgrade to a more modern version of that compiler. There is a free version of the 7.1 compiler available from the Microsoft web site. Beta 2 of VC++ 8.0 seems pretty solid too. --Beman

"Beman Dawes" <bdawes@acm.org> wrote in message news:d8n0ib$3e5$1@sea.gmane.org...
"Jason Heyes" <jasonheyes@optusnet.com.au> wrote in message news:011101c570ec$e6a34660$8a661fd3@yourmig0zhgr96...
I receive errors when I try to compile fstream_test.cpp using Microsoft Visual C++ 6.0. The first error I receive is this:
fstream_test.cpp c:\boost\include\boost-1_32\boost\filesystem\fstream.hpp(29): error C2504: 'basic_filebuf<char,char_traits<char> >': base class undefined c:\projects\examples\fstream_test.cpp(27): see reference to class template instantiation 'boost::filesystem::basic_filebuf<char,char_traits<char> >' being compiled
That test is passing with VC++ 6.0 on several regression tester's machines, so there must be a bit more to the story than just the usual VC++ 6.0 woes. Do you have all the service packs installed?
Is there a workaround for this? Thanks.
One workaround is to upgrade to a more modern version of that compiler. There is a free version of the 7.1 compiler available from the Microsoft web site. Beta 2 of VC++ 8.0 seems pretty solid too.
Thanks alot. I'll try those things.
participants (2)
-
Beman Dawes
-
Jason Heyes