Dear ROOTers,
On my Mac I have installed both Windows XP and Vista, and on both Windows systems I have installed
"Visual Studio Express 2008" and the binary version of ROOT for Windows compiled with VC++ 9.
My MakeFile.win to compile my library contains for example the following line:
TStat.obj: TStat.h TStat.cxx
$(CL) /I"$(ROOTSYS)/include" /FIw32pragma.h /MT /EHsc /Ox /D "MSVC" /D "WIN32" /c TStat.cxx
On WinXP the code compiles w/o problem and it does not matter if I use /MD or /MT. Moreover, the
compiled library runs w/o problem in both cases.
On Windows Vista the code compiles also w/o problem in both cases, /MD or /MT. However, in contrast
to WinXP the library runs only when compiled with /MD, but crashes root immediately when compiled with /MT.
Does anybody know why the library runs w/o problem on WinXP but crashes on Vista when compiled with /MT?
Is there any possibility to change the MakeFile so that the library can be compiled using /MT?
My problem is that I must compile the library with /MT.
Best regards
Christian