Issue in compiling my code


I am getting an error in compilation of my code (main.cpp).

The error I see on the terminal is in the attached .txt file. Please suggest how to resolve this issue?

Error.txt (867 Bytes)

Please read tips for efficient and successful posting and posting code

ROOT Version: 6.08
Platform: Ubuntu 18.04
Compiler: gcc version 4.8.5

`root-config --cxx --cflags` -o foo main.cpp -L/home/manish/Programs/ADAQ/ADAQ/source/ADAQReadout/build -lADAQReadout `root-config --libs`

Hi Wile,

Thanks for your reply. Unfortunately, it is not resolving the problem. Attached is what I get after I execute your suggested syntax.

Any suggestions?

Error-2.txt (883 Bytes)

Can it be that the “ADAQReadout” library was built by another ROOT version (or with some incompatible flags)?