Using ACLiC and Visual Studio compiler

HIi rooter, I try to run root on windows. I want to use ACLiC, not the cint interpreter.
Firstly I used root cint to run the code hello.cc successfully as below.


But the ACLiC didn’t work properly well. I typed:
D:\VisualStudio2010\Common7\Tools\vsvars32.bat
C:\root\bin\thisroot.bat
.x C:\root\macros\hello.cc
It told me that ‘.x is not internal or external command’.
How can I solve this problem? Thanks.

  • List item

Hi darkblue,
.x is a command that you can enter from the ROOT prompt.

After C:\root\bin\thisroot.bat, execute command root, this will open the ROOT prompt and from there you can use commands such as .x.

Hope this helps,
Enrico

Hi Enrico, If I open the ROOT prompt and type .x hello.cc+, is the code running using ACLiC not CINT?
I want to use the Visual Studio compiler to run code faster. The CINT works slowly.

Yes, appending + compiles the code with ACLiC.

We also provide ROOT in docker containers with which you can use ROOT6 and its new clang-based interpreter, cling.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.