Can't compile code

I’m having trouble compiling code in ROOT. For instance, if I try to compile the following simple code

#include <iostream>
using namespace std;

double test()
	double x=5.0;
	return x;

I get the following message

Info in <TWinNTSystem::ACLiC>: creating shared library C:/root_v6.20.06/test/test_c.dll
   Creating library C:/root_v6.20.06/test\test_c.lib and object C:/root_v6.20.06/test\test_c.exp
LINK : fatal error LNK1181: cannot open input file 'liblzma.lib'
Error in <ACLiC>: Compilation failed!

I downloaded the 6.20.06 Windows Visual Studio 2019 (dbg) binary. The thing is, I was able to compile code about a month ago, and I haven’t downloaded anything new, so I’m not sure why I’m no longer able to compile.

Please read tips for efficient and successful posting and posting code

ROOT Version: 6.20.06
Platform: Windows 10
Compiler: Not Provided


Yes, sorry, ACLiC is currently broken on Windows, we’re working on it. For now, you can download and extract it in your %ROOTSYS%\lib directory. Sorry for the inconvenience.

Cheers, Bertrand.

1 Like

Thanks, that solved the problem.