Linking against ROOT 6.18/04


ROOT Version: 6.18/04
Platform: CentOS
Compiler: gcc 9.1.0


When trying to link a program against ROOT 6.18/04 I get an error during the linking stage:

/usr/bin/ld: warning: libvdt.so, needed by /opt/cern/root/root_v6.18.04-gcc9/lib/libROOTVecOps.so, not found (try using -rpath or -rpath-link)

This does not happen when I use ROOT 6.18/02. I can reproduce it with any program, such as

#include <iostream>
#include "TROOT.h"

int main(int, char**)
{
        std::cout<<TROOT::GetMacroPath()<<std::endl;

        return 0;
}

Compiling it with g++ -o test test.cc `root-config --cflags --libs` creates the error above. And I also checked this using gcc 4.9.3 (linking against ROOT 6.18/04 compiled with gcc 4.9.3) and I get the same error.

Hi,
Try to re-configure and then re-compile ROOT with the option -Dbuiltin_vdt=On

Lorenzo

Thanks Lorenzo, that worked!

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