You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#include<cpr/cpr.h>
#include<keychain/keychain.h>intmain() {
// The code isn't that important it's just for the functions to be linked to the executable
cpr::Response r = cpr::Get( cpr::Url{"https://example.com"} );
keychain::Error err;
keychain::setPassword("dasd", "asdasda", "dasdasd", "asd", err);
}
The build breaks and throws out linker errors that reference keychain. This only happens when I include cpr. Other libs work fine. There is one weird thing, when I switch the order in FetchContent_MakeAvailable():
@COM8 I'm not sure if I understand you correctly but building keychain alone works fine(altough I had to remove the build directory and rerun cmake . -G Ninja -B build, probably because of some caching issues). I don't know how that would be caused by missing includes if one order works fine, could you elaborate?
Description
I don't really know if I should report this here or in the library that gets broken but with the following CMakeLists.txt:
And main.cpp:
The build breaks and throws out linker errors that reference keychain. This only happens when I include cpr. Other libs work fine. There is one weird thing, when I switch the order in FetchContent_MakeAvailable():
The build works.
Logs of failed build:
https://pastebin.com/iKSpKjqq
https://pastebin.com/L75nGhHx
Logs of successful build(with switched order):
https://pastebin.com/28f7taQP
https://pastebin.com/mQfsw97a
On linux everything works no matter the order. I'm using clang + msvc(as stdlib) + ninja.
Example/How to Reproduce
Possible Fix
No response
Where did you get it from?
GitHub (branch e.g. master)
Additional Context/Your Environment
The text was updated successfully, but these errors were encountered: