Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Link error with Poco when using libc++ #143

Open
rotu opened this issue Mar 24, 2020 · 1 comment
Open

Link error with Poco when using libc++ #143

rotu opened this issue Mar 24, 2020 · 1 comment

Comments

@rotu
Copy link

rotu commented Mar 24, 2020

Ubuntu Focal / Cmake 3.16.3 / Clang 11 / Foxy Master

--- stderr: class_loader                                                                   
ld.lld: error: ../../libclass_loader.so: undefined reference to Poco::SharedLibrary::SharedLibrary(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&)
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [test/fviz_case_study/CMakeFiles/class_loader_Test_Fviz_Main.dir/build.make:90: test/fviz_case_study/class_loader_Test_Fviz_Main] Error 1
make[1]: *** [CMakeFiles/Makefile2:403: test/fviz_case_study/CMakeFiles/class_loader_Test_Fviz_Main.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [Makefile:141: all] Error 2
---
Failed   <<< class_loader	[ Exited with code 2 ]
@rotu
Copy link
Author

rotu commented Mar 24, 2020

I seem to be able to reproduce this with clang versions 9,10,11 (didn't test earlier).
But only when clang has CXXFLAGS+=" -stdlib=libc++".

@rotu rotu changed the title Link error: undefined reference to Poco::SharedLibrary::SharedLibrary(...) Link error with Poco when using libc++ Mar 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant