8000 Undefined Symbols when including ppconsul using CPM module. · Issue #75 · oliora/ppconsul · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Undefined Symbols when including ppconsul using CPM module. #75
Open
@srihari-vistrian

Description

@srihari-vistrian

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

CPMAddPackage("gh:oliora/ppconsul@0.2.3")

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0