-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
[curl:x64-osx] "symbols not found" linker errors with curl + cpr on macOS #7332
Comments
As @past-due pointed out here (#7260 (comment)) it works when I change my find_package(CURL CONFIG REQUIRED)
target_link_libraries(message PRIVATE cpr nlohmann_json nlohmann_json::nlohmann_json CURL::libcurl ${ZLIB_LIBRARY}) This resolves the errors. So I would propose that the usage text after installing curl should be updated. |
I'm not sure if this is applicable to this bug report or not, since I'm unaware of the internals of how cmake works in terms of this bugfix, but when attempting to link to (Also posting this same comment in the linked issue in case someone stumbles here from Google like me so they can have a temp fix before the PR comes through.) |
I am closing this, as this has been fixed and no longer a problem. |
Hello,
when I am trying to compile a program with curl + cpr on macOS Mojave 10.14.5 (using clang 8.0.1-rc3 instead of Apple LLVM/Clang from Xcode) I get lots and lots of "Undefined symbols" linker errors (see below).
I am no expert here but it looks to me like curl is trying to use Apple Secure Transport for SSL but cannot resolve its symbols?
CMakeLists.txt
Configuration with cmake
$ cmake -G Ninja -DCMAKE_BUILD_TYPE=Release -DCMAKE_TOOLCHAIN_FILE=$SUITE_BUILD/vcpkg/scripts/buildsystems/vcpkg.cmake ..
Compiling & building with ninja
$ ninja -v
Installed packages
./vcpkg list | grep curl
The text was updated successfully, but these errors were encountered: