Compile problem with TGeoManager, Windows4root and Varargs

Hy,

following code does not compile :

#include <Varargs.h>
#include <Windows4root.h>
#include <TGeoManager.h>
int main() {
return 0;
}

I run this on windows (Visual C++ 2003).

I have attached the source and the project file.

Matthias
test.vcproj.txt (3.26 KB)
test.cpp (106 Bytes)

Hi Matthias,
Just invert two lines like this:

#include <TGeoManager.h> #include <Windows4root.h>
It will work. The reason is that Windows4Root.h includes windows.h, where GetFreeSpace is defined as a Win32 API function.
HTH.

Cheers,
Bertrand.