curl.h: No such file or directoryundefined reference to curl_easy_initcurl.h: No such file or directory ¶libcurl development headers aren’t installed.
sudo dnf install libcurl-devel
sudo apt install libcurl4-openssl-dev
brew install curl
pacman -S mingw-w64-ucrt-x86_64-curl
undefined reference to curl_easy_init ¶The link step couldn’t find libcurl. Should normally be auto-detected;
if not, the Makefile falls back to dynamic linking and prints a
warning. Check which curl-config returns a path.
Very rare. Usually means an ABI mismatch between libcurl headers used to compile and the libcurl shared library found at runtime. Rebuild on the same machine you’ll run on, or statically link.