[asterisk-users] when we try to add CURL code to file channel.c we get an error - undefined reference to curl_easy_init

Grey Man greymanvoip at gmail.com
Mon Mar 3 03:23:12 CST 2008


On Mon, Mar 3, 2008 at 6:27 AM, Prashant Sharma <prashant.ruby at gmail.com> wrote:
> Hi Tilghman,
>
> Thanks for taking interest in my problem.
>
> I just want to send a http post request to my website without changing the
> dial plan. So I have added slightly modified http post code and some other
> code to channel.c got from <curl/curl.h>.
> After adding the code I compiled the asterisk code and got the error:
>
> channel.o(.text+0x....): channel.c:xxxx: undefined reference to
> 'curl_global_init'
>
>

Try adding the following above the first include in channel.c. It's
what I've done in app_dial.c to get the Curl library to link properly.

/*** MODULEINFO
	<depend>Curl</depend>
 ***/

Regards,

Greyman.



More information about the asterisk-users mailing list