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
test_c_ACLiC_dict.cxx
   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


Hi,

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

Cheers, Bertrand.

1 Like

Thanks, that solved the problem.