Error to execute makefile


ROOT Version: 6.26


Hi, I am having problems to create my executable file of my simulation after update my garfield version with git pull command. Now every time that I try to execute the code it gives this output:

$ make
g++ -Wall -Wextra -Wno-long-long `root-config --cflags` -O3 -fno-common -c -I/home/lsd/garfieldpp/Include -I/home/lsd/garfieldpp/Heed gem.C
g++ `root-config --cflags` -o gem gem.o -L/home/lsd/garfieldpp/install/lib -lGarfield `root-config --glibs` -lGeom -lgfortran -lm -Wmain
/usr/bin/ld: gem.o: na função "main":
gem.C:(.text.startup+0x17a): referência não definida para "Garfield::ComponentAnsys123::Initialise(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)"
/usr/bin/ld: gem.C:(.text.startup+0x848): referência não definida para "Garfield::AvalancheMicroscopic::EnablePlotting(Garfield::ViewDrift*, unsigned long)"
/usr/bin/ld: gem.C:(.text.startup+0x157e): referência não definida para "Garfield::ViewSignal::PlotSignal(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const&, bool)"
collect2: error: ld returned 1 exit status
make: *** [makefile:22: gem] Erro 1

Hi,
can you try building your executable using CMake + make (you can use the CMakeLists.txt in one of the Examples subfolders as a template)?

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