[Insight-developers] fstream instantiation

Luis Ibanez ibanez@choroid.cs.unc.edu
Sun, 8 Apr 2001 18:38:27 -0400 (EDT)


Hi,

I'm building a project using Insight, and have trouble
at link time with the definition of ifstream and ofstream.

It is related with the fact that  ifstream/ofstream are now
a typedefs for a template that can be instantiated with char or wchars.


The message I got in VC++ is:

Linking...
OperatingRoomLib.lib(liSpineModel.obj) :
warning LNK4006: "public: void __thiscall std::basic_ofstream<char,struc
std::char_traits<char> >::`vbase destructor`(void)
already defined in msvcprtd.lib(MSVCP60D.dll); second definition ignored

..


Is this related with the use of vcl_fstream.h  ?

Is there any way to prevent my code (external to itk) to instantiate
ifstream/ofstream ?


Thanks



Luis