I tryied to compile the File hsimple.C with the Root Compiler, but i got only a strange Error. It looks like the VC++ Compiler dosent work with some of the Root header files.
I use Root 5.14.00 and Microsoft Visual C++ 7.1
P.S. to interpret the code works fine.
errormessage:
root [0] .x hsimple.C+
Info in TWinNTSystem::ACLiC: creating shared library C:\root\root\tutorials\hsimple_C.dll
2236431_cint.cxx
cl : Befehlszeile warning D4029 : Die Optimierung ist im Standardcompiler nicht verfügbar.
s3io_.cxx
C:\root\cint\include\stdio.h(4) : warning C4068: Unbekanntes Pragma
C:\root\cint\include\stdio.h(11) : warning C4068: Unbekanntes Pragma
C:\root\cint\include\stdio.h(12) : warning C4068: Unbekanntes Pragma
C:\root\cint\include\bool.h(8 ) : warning C4068: Unbekanntes Pragma
C:\root\cint\include\bool.h(9) : warning C4068: Unbekanntes Pragma
C:\root\cint\include\bool.h(11) : warning C4068: Unbekanntes Pragma
C:\root\cint\include\bool.h(20) : error C2143: Syntaxfehler: Es fehlt ‘;’ vor 'constant’
C:\root\cint\include\bool.h(20) : fatal error C1004: Unerwartetes Dateiende gefunden
Error in : Compilation failed!
Error: Function hsimple() is not defined in current scope (0)
*** Interpreter error recovered ***
Same error as before.
It is strange, that the error is a missing "; " in a Cint include file: bool.h
I don’t need this (not in this test file) and i never changed that file.