CURL compiling undefined references to despite dll linkage

Viewed 56

I am having a very hard time to fix this issue, since no one seems to know anything, during compilation time almost when the whole process is over, i get 125 compiler errors about undefined references, when i try to add into cmakeLists.txt the dll's locations, still nothing changes.

The issue i have is very similar to this one: https://github.com/curl/curl/issues/1146 but it wasn't solved, and the dude at the last post said that it's because of the static library, but that's not the case at all, it's the reverse, as long as i don't check the shared library option, everything compiles withous prblems, but when i do, then i get all the errors.

Also, i am not familiar with this cmake tool, since it's extremely chaotic, but someone suggested adding these lines in order to link the dll's:

add_library(DLL_CRYPTO SHARED IMPORTED)
set_target_properties(DLL_CRYPTO PROPERTIES IMPORTED_LOCATION C:/Users/abcd123/Documents/Qt_Projects/curl_libs/libcrypto-1_1-x64.dll)

add_library(DLL_SSL SHARED IMPORTED)
set_target_properties(DLL_SSL PROPERTIES IMPORTED_LOCATION C:/Users/abcd123/Documents/Qt_Projects/curl_libs/libssl-1_1-x64.dll)

It does compile, but it changes nothing, still i get exactly 125 errors.

0 Answers
Related