ACLIC Problem with VC++ 7.1

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 ***

Use ROOT version 5.16. In this version we changed most tutorials such that they can be executed via CINT or via ACLIC.

Rene

I will try Root 5.16. But the problem is not the file, even an file with no code produce this error.
Test.C:
TFile *test()
{
//nothing
}

root [0] .x test.C+
Info in TWinNTSystem::ACLiC: creating shared library C:\root\root\tutorials\test_C.dll
2367231_cint.cxx
cl : Befehlszeile warning D4029 : Die Optimierung ist im Standardcompiler nicht verfügbar.
s1lk_.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 test() is not defined in current scope (0)
*** Interpreter error recovered ***

When using ACLIC, your input file must be valid C++, ie with the necessary include files. In your simple example, add
#include “TFile.h”

Rene

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.

Could you post the EXACT same file that you try to execute?
and show the EXACT command that you use to execute it?

Rene

Sorry I accidently killed my VC++. :frowning:
I will reinstall VC++ and then i will ask you again.

Hi,

you added %ROOTSYS/cint/include to %INCLUDE. Don’t - the files in that directory are used by CINT internally.

Cheers, Axel.