<fstream> problem with VC++ 6.0

Dear Rooters,

I got a problem trying to build my library (dll) under W2000 with root_v3.10.01.win32gdk using VC++ 6.0 (upgraded with the latest SP)
Under linux the library was builded succesfully.

The lines which create the problems are:

#include
using namespace std;

Int_t EdbImage::LoadBMP( char *file )
{
fstream raw(file,ios::in);
raw.close();
return 0;
}

The error happend during the linking:

EdbImage.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: void __thiscall std::b
asic_fstream<char,struct std::char_traits >::`vbase destructor’(void)” (_imp??_D?$basic_fstream@DU?$ch
ar_traits@D@std@@@std@@QAEXXZ)
EdbImage.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: void __thiscall std::b
asic_fstream<char,struct std::char_traits >::close(void)” (_imp?close@?$basic_fstream@DU?$char_traits@
D@std@@@std@@QAEXXZ)
EdbImage.obj : error LNK2001: unresolved external symbol “__declspec(dllimport) public: _thiscall std::basic
fstream<char,struct std::char_traits >::basic_fstream<char,struct std::char_traits >(char const *,
int)” (_imp??0?$basic_fstream@DU?$char_traits@D@std@@@std@@QAE@PBDH@Z)
…\lib\libEdb.dll : fatal error LNK1120: 3 unresolved externals
NMAKE : fatal error U1077: ‘link’ : return code '0x460’
Stop.

Any help is welcome
Valeri Tioukov

Valeri, privet! Did you try to

#include "Riostream.h"
instead of #include

Check also comments at root.cern.ch/root/Version310.html

HTH. Regards. Valeriy

In fact - after setting all compilation&linking option as in
root/test/Makefile.win32 - which are quite different fro the new root
then for the old version we used on the windows the linking was succesfull.

Valeri