Re: Undefined reference of a new libcurl function

2022-10-15 Thread Daniel Stenberg via curl-library
On Thu, 13 Oct 2022, Arnaud Compan via curl-library wrote: 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. Are you *sure* you link with the right library? I can't recall any

RE: Undefined reference of a new libcurl function

2022-10-14 Thread Arnaud Compan via curl-library
> > On Thu, Oct 13, 2022 at 08:46:20AM +, Arnaud Compan via curl-library > wrote: > > 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

Re: Undefined reference of a new libcurl function

2022-10-13 Thread Dan Fandrich via curl-library
On Thu, Oct 13, 2022 at 08:46:20AM +, Arnaud Compan via curl-library wrote: > 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);

Undefined reference of a new libcurl function

2022-10-13 Thread Arnaud Compan via curl-library
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) { }