-
Hello! I'm using Embarcadero with clang. I attempted to compile a static library from the source code, and everything compiles fine without errors. However, during the linking stage when linking the application with this library, a linking error occurs: "Unresolved external '_curl_global_init' referenced from CURL_TEST1.OBJ." I couldn't find information on whether it's possible to compile the library in this way. My own attempts didn't lead to any solution. Now I'm seeking help to understand how to solve my task. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Perhaps it will be useful. |
Beta Was this translation helpful? Give feedback.
-
You need to define CURL_STATICLIB when compiling your code, as mentioned in the FAQ. Other macros like BUILDING_LIBCURL are used only for building libcurl and you shouldn't define them. |
Beta Was this translation helpful? Give feedback.
You need to define CURL_STATICLIB when compiling your code, as mentioned in the FAQ. Other macros like BUILDING_LIBCURL are used only for building libcurl and you shouldn't define them.