Boost logo

Boost :

From: Mark Coletti (mcoletti_at_[hidden])
Date: 2003-09-30 15:20:09


I've uninstalled VC++ 6 and reinstalled it and reapplied SP 5.
However the following program:

#include <boost/filesystem/fstream.hpp>

namespace fs = boost::filesystem;

int
main( int argc, char** argv )
{
    fs::ofstream foo("bar.txt");

    return 0;
}

Yields:

Creating temporary file "C:\DOCUME~1\mcoletti\LOCALS~1\Temp\RSP23.tmp"
with contents
[/nologo /MLd /W3 /Gm /GX /ZI /Od /I
"/cygwin/usr/local/include/boost-1.30.2" /D "WIN32" /D "_DEBUG" /D
"_CONSOLE" /D "_MBCS" /Fp"Debug/crap.pch" /YX /Fo"Debug/" /Fd"Debug/"
/FD /I /cygwin/usr/local/include/boost-1.30.2" /GZ " /c
"C:\cygwin\home\mcoletti\tmp\crap\crap.cpp"]
Creating command line "cl.exe
@C:\DOCUME~1\mcoletti\LOCALS~1\Temp\RSP23.tmp"
Creating temporary file "C:\DOCUME~1\mcoletti\LOCALS~1\Temp\RSP24.tmp"
with contents
[kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib
advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib
odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib
comdlg32.lib advapi32.lib shell32.lib ole32.lib olea ut32.lib uuid.lib
odbc32.lib odbccp32.lib /nologo /subsystem:console /incremental:yes
/pdb:"Debug/crap.pdb" /debug /machine:I386 /out:"Debug/crap.exe"
/pdbtype: sept .\Debug\crap.obj ]

Creating command line "link.exe
@C:\DOCUME~1\mcoletti\LOCALS~1\Temp\RSP24.tmp"

<h3>Output Window</h3>
Compiling...
crap.cpp
c:\cygwin\usr\local\include\boost-1.30.2\boost\filesystem\fstream.hpp(72)
: error C2504: 'basic_ofstream<char,struct std::char_traits<char> >' :
base class undefined
        c:\cygwin\home\mcoletti\tmp\crap\crap.cpp(16) : see reference
        to class template instantiation
        'boost::filesystem::basic_ofstream<char,structstd::char_traits<char> >'
 being compiled
Error executing cl.exe.

Anyone else out there with a VC++ 6.0(SP5) set-up able to reproduce
this error?

-- 
Mark Coletti | mailto:mcoletti_at_[hidden] | http://www.lychnobite.org/
		   Have you crashed Windows today?

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