I tried to compile a project from my lab, the only things I changed from the original code using ccmake are:
CMAKE_CXX_COMPILER /usr/bin/clang++
CMAKE_CXX_FLAGS -fPIC -std=c++11
CMAKE_EXE_LINKER_FLAGS -stdlib=libc++
The project also depends from another lib that I compiled using the same options. The compiling works well but the linking fails at some points and give us
/usr/bin/ld: main.cpp.o: undefined reference to symbol '_ZNSsC1EOSs@@GLIBCXX_3.4.14'
/usr/lib/x86_64-linux-gnu/libstdc++.so.6: error adding symbols: DSO missing from command line
The code is compiling on another machine but for some reasons, we do not manage to compile on this system. We tried a lot of things without success.
Aucun commentaire:
Enregistrer un commentaire