Closed rmkerr closed 4 years ago
@obiltschnig Does this repro look like an actual issue to you?
I'd say you also have to link the PocoJWT library (and its dependencies PocoCrypto and PocoJSON) in the CMakeLists.txt.
Thanks, that was all it took. For anyone who runs into this issue in the future, I fixed it by editing the target_link_libraries
in my CMakeLists.txt:
target_link_libraries(webserver ${CONAN_LIBS} PocoJWT PocoCrypto PocoJSON)
I'm unable to use the Poco::JWT library, despite enabling it. I'm a beginner to Poco and Conan, so I may just be doing something dumb. Every time I build, I get an
undefined reference to Poco::JWT::Signer::Signer
error from the linker.To repro:
1) Start with from the conan MD5 examples:
2) Edit conanfile.txt to use the latest version of Poco, and to enable JWT library support:
3) Run a successful build, without a dependency on the Poco::JWT library:
4) Add a dependency on the Poco::JWT library by replacing the contents of md5.cpp:
5) Repeat the build process, and observe the following error:
If anyone can point me in the right direction (and the solution is simple enough for a beginner), I'd be happy to put up a PR with the fix.