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

Undefined Symbols when including ppconsul using CPM module. #75

Open
srihari-vistrian opened this issue Jul 7, 2024 · 2 comments
Open

Comments

@srihari-vistrian
Copy link

I am getting build errors when I try to include the ppconsul using CPM module:

CPMAddPackage("gh:oliora/[email protected]")

Undefined symbols for architecture x86_64:
  "ppconsul::makeDefaultHttpClientFactory()", referenced from:
      ppconsul::Consul::Consul<void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>) in emitter.cpp.o
  "ppconsul::Consul::Consul(std::__1::function<std::__1::unique_ptr<ppconsul::http::HttpClient, std::__1::default_delete<ppconsul::http::HttpClient>> (std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>> const&, ppconsul::http::TlsConfig const&, std::__1::function<bool ()>)>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>, ppconsul::http::TlsConfig, bool)", referenced from:
      ppconsul::Consul::Consul<void>(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char>>) in emitter.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

linking with "ppconsul" in the target_link_libraries

@oliora
Copy link
Owner

oliora commented Jul 7, 2024

Thank you for reporting it. I've never used CPM and can't give any ETA when I will have time to fix this issue but will be happy to merge a fix if you make one

@srihari-vistrian
Copy link
Author

At the moment, I have reverted back to 0.2.2 version and this works and I am making do with that. If I get a chance to look into this, I'll get back to you with anything I find.

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

2 participants