Skip to content

Instantly share code, notes, and snippets.

@alexpearce
Created February 4, 2015 16:29
Show Gist options
  • Save alexpearce/88cfc9973b3eebaf291b to your computer and use it in GitHub Desktop.
Save alexpearce/88cfc9973b3eebaf291b to your computer and use it in GitHub Desktop.
make error
g++ -c -o obj/TMVAClassification.o src/TMVAClassification.cxx -g -O0 -I./include/ -Wall -std=c++11 -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/usr/local/Cellar/root6/6.02.04/include/root
g++ -c -o obj/AnyWriter.o src/AnyWriter.cxx -g -O0 -I./include/ -Wall -std=c++11 -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/usr/local/Cellar/root6/6.02.04/include/root
g++ -c -o obj/DConfig.o src/DConfig.cxx -g -O0 -I./include/ -Wall -std=c++11 -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/usr/local/Cellar/root6/6.02.04/include/root
g++ -c -o obj/MyUtils.o src/MyUtils.cxx -g -O0 -I./include/ -Wall -std=c++11 -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/usr/local/Cellar/root6/6.02.04/include/root
g++ -c -o obj/BDTTools.o src/BDTTools.cxx -g -O0 -I./include/ -Wall -std=c++11 -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/usr/local/Cellar/root6/6.02.04/include/root
rootcint -f dict/MyDict.cxx -c -p include/ROOTex.h include/LinkDef.h
g++ -c -o obj/ROOTex.o dict/MyDict.cxx -I./ -g -O0 -I./include/ -Wall -std=c++11 -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/usr/local/Cellar/root6/6.02.04/include/root
g++ -L./lib -lboost_program_options -fPIC -lTMVA -L/usr/local/Cellar/root6/6.02.04/lib/root -lCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lpthread -stdlib=libc++ -lm -ldl -lMLP -lXMLIO -lTreePlayer ./obj/TMVAClassification.o ./obj/AnyWriter.o ./obj/DConfig.o ./obj/MyUtils.o ./obj/BDTTools.o ./obj/ROOTex.o -lm -lstdc++ -o ./bin/TMVAClassification
-> ./bin/TMVAClassification created!
g++ -c -o obj/TMVAClassificationApplication.o src/TMVAClassificationApplication.cxx -g -O0 -I./include/ -Wall -std=c++11 -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/usr/local/Cellar/root6/6.02.04/include/root
g++ -L./lib -lboost_program_options -fPIC -L/usr/local/Cellar/root6/6.02.04/lib/root -lCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lpthread -stdlib=libc++ -lm -ldl -lMLP -lXMLIO -lTreePlayer -lTMVA ./obj/TMVAClassificationApplication.o ./obj/AnyWriter.o ./obj/DConfig.o ./obj/MyUtils.o ./obj/BDTTools.o ./obj/ROOTex.o -lm -lstdc++ -o ./bin/TMVAClassificationApplication
-> ./bin/TMVAClassificationApplication created!
g++ -c -o obj/TreeSplitter.o src/TreeSplitter.cxx -g -O0 -I./include/ -Wall -std=c++11 -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/usr/local/Cellar/root6/6.02.04/include/root
g++ -L./lib -lboost_program_options -fPIC -L/usr/local/Cellar/root6/6.02.04/lib/root -lCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lpthread -stdlib=libc++ -lm -ldl -lMLP -lXMLIO -lTreePlayer ./obj/TreeSplitter.o ./obj/AnyWriter.o ./obj/DConfig.o ./obj/MyUtils.o ./obj/ROOTex.o -lm -lstdc++ -o ./bin/TreeSplitter
-> ./bin/TreeSplitter.x created!
g++ -c -o obj/BDTControlPlots.o src/BDTControlPlots.cxx -g -O0 -I./include/ -Wall -std=c++11 -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/usr/local/Cellar/root6/6.02.04/include/root
g++ -L./lib -lboost_program_options -fPIC -lTMVA -L/usr/local/Cellar/root6/6.02.04/lib/root -lCore -lRIO -lNet -lHist -lGraf -lGraf3d -lGpad -lTree -lRint -lPostscript -lMatrix -lPhysics -lMathCore -lThread -lpthread -stdlib=libc++ -lm -ldl -lMLP -lXMLIO -lTreePlayer ./obj/BDTControlPlots.o ./obj/AnyWriter.o ./obj/DConfig.o ./obj/MyUtils.o ./obj/BDTTools.o ./obj/ROOTex.o -lm -lstdc++ -o ./bin/BDTControlPlots
-> ./bin/BDTControlPlots created!
g++ -shared -o lib/libROOTex.so `root-config --ldflags` -fPIC -I./dict/ -I./ -g -O0 -I./include/ -Wall -std=c++11 -fPIC -pthread -stdlib=libc++ -std=c++11 -m64 -I/usr/local/Cellar/root6/6.02.04/include/root obj/ROOTex.o
clang: warning: argument unused during compilation: '-pthread'
Undefined symbols for architecture x86_64:
"TVersionCheck::TVersionCheck(int)", referenced from:
___cxx_global_var_init in ROOTex.o
"ROOT::DefineBehavior(void*, void*)", referenced from:
ROOT::GenerateInitInstanceLocal(ROOTex const*) in ROOTex.o
"ROOT::Class_ShowMembers(TClass*, void const*, TMemberInspector&)", referenced from:
ROOTex::ShowMembers(TMemberInspector&) const in ROOTex.o
"ROOT::TGenericClassInfo::GetImplFileLine()", referenced from:
ROOTex::ImplFileLine() in ROOTex.o
"ROOT::TGenericClassInfo::GetImplFileName()", referenced from:
ROOTex::ImplFileName() in ROOTex.o
"ROOT::TGenericClassInfo::GetClass()", referenced from:
ROOTex::Dictionary() in ROOTex.o
ROOTex::Class() in ROOTex.o
"ROOT::TGenericClassInfo::TGenericClassInfo(char const*, int, char const*, int, std::type_info const&, ROOT::TInitBehavior const*, TClass* (*)(), TVirtualIsAProxy*, int, int)", referenced from:
ROOT::GenerateInitInstanceLocal(ROOTex const*) in ROOTex.o
"ROOT::TGenericClassInfo::~TGenericClassInfo()", referenced from:
ROOT::GenerateInitInstanceLocal(ROOTex const*) in ROOTex.o
"TROOT::RegisterModule(char const*, char const**, char const**, char const*, char const*, void (*)(), std::__1::vector<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int>, std::__1::allocator<std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, int> > > const&, char const**)", referenced from:
(anonymous namespace)::TriggerDictionaryInitialization_MyDict_Impl() in ROOTex.o
"vtable for TLockGuard", referenced from:
TLockGuard::~TLockGuard() in ROOTex.o
TLockGuard::TLockGuard(TVirtualMutex*) in ROOTex.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"_gGlobalMutex", referenced from:
ROOTex::Class() in ROOTex.o
"_gInterpreterMutex", referenced from:
ROOTex::Class() in ROOTex.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [lib/libROOTex.so] Error 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment