curl / Mailing Lists / curl-library / Single Mail
Buy commercial curl support from WolfSSL. We help you work out your issues, debug your libcurl applications, use the API, port to new platforms, add new features and more. With a team lead by the curl founder himself.

Undefined reference of a new libcurl function

From: Arnaud Compan via curl-library <curl-library_at_lists.haxx.se>
Date: Thu, 13 Oct 2022 08:46:20 +0000

Hello,

For testing purposes, I've tried to add a function in libcurl but I'm facing undefined reference link error regarding this function when I build my test program.

In details, I've added the function in lib/multi.c:
          void my_test(struct Curl_easy *data)
          {
          }
And in include/curl/multi.h:
          CURL_EXTERN void my_test(CURL *curl_handle);
And of course libcurl is rebuilt with the same configure & make commands.
I
t seems I'm missing something.

Thanks,
Arnaud
-- 
Unsubscribe: https://lists.haxx.se/listinfo/curl-library
Etiquette:   https://curl.se/mail/etiquette.html
Received on 2022-10-13