Quantcast
Channel: Active questions tagged gcc - Stack Overflow
Viewing all articles
Browse latest Browse all 22006

pythia8240 code compiling: error adding symbols: DSO missing from command line

$
0
0

I'm compiling a code in Pythia, version 8.240 on Linux (Ubuntu 18.04`).

Command im using is:

$ make Analysistau1

the Makefile uses the following shell command:

g++ -g -I$(pythiainc) -I$(tauolainc) Analysistau1.cc -o $@.exe \
  -L$(tauolalib) -L$(pythialib) -L$(hepmclib) 
  -L$(lhapdflib) `root-config --cflags --glibs `fastjet-config \
  --cxxflags --plugins` `fastjet-config --libs --plugins` -lpythia8 \
  -lLHAPDF -lHepMC -lTauolaCxxInterface -lTauolaFortran

The expected output is an exe file of named analysistau1 ready to use. but the following exception is raised:

/usr/bin/ld: /home/wajahat/Products/Analysis/pythia8240/lib/libpythia8.a(PartonDistributions.o): undefined reference to symbol 'dlclose@@GLIBC_2.2.5'
/usr/lib/gcc/x86_64-linux-gnu/7/../../../x86_64-linux-gnu/libdl.so: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
makefile:27: recipe for target 'Analysistau1' failed
make: *** [Analysistau1] Error 1

Viewing all articles
Browse latest Browse all 22006

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>