Boost logo

Boost :

From: Ehsan Akhgari (ehsan_at_[hidden])
Date: 2003-10-09 10:44:10


Hi all,

The following program fails to compile using VC++ 7.1 with Boost 1.30.2:

#include <boost/filesystem/fstream.hpp>

int main()
{
 boost::filesystem::fstream fs( "x" );
}

Here are the compiler's command line and diagnostics:

F:\>cl 1.cpp /EHsc /IE:\boost /Zc:wchar_t
Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 13.10.3077 for
80x86 Copyright (C) Microsoft Corporation 1984-2002. All rights
reserved.

1.cpp
E:\boost\boost\filesystem\fstream.hpp(100) : error C2039: '__ctor' : is
not a member of 'boost::filesystem::basic_fstream<charT>'
        with
        [
            charT=char
        ]
        E:\boost\boost\iterator_adaptors.hpp(1409) : see reference to
class template instantiation
'boost::filter_iterator_generator<Predicate,Iterator,Value,Reference,Poi
nter,Category,Distance>' being compiled
E:\boost\boost\filesystem\fstream.hpp(100) : error C2039: '__ctor' : is
not a member of 'boost::filesystem::basic_fstream<charT>'
        with
        [
            charT=char
        ]

Intel C++ 7.1 can compile this program using the same command line
options. Any ideas?

Thanks!
-------------
Ehsan Akhgari

List Owner: MSVC_at_[hidden]

[ Email: ehsan_at_[hidden] ]
[ WWW: http://www.beginthread.com/Ehsan ]


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