undefined reference to `curl_global_init' code example Example: undefined reference to `curl_global_init' $ gcc test.c -lcurl