[asterisk-users] when we try to add CURL code to file channel.c we get an error - undefined reference to curl_easy_init
Prashant Sharma
prashant.ruby at gmail.com
Mon Mar 3 07:02:01 CST 2008
Hi Greyman,
Thank you very much for reply.
But unfortunately even after adding these lines in the file 'channel.c'
didn't help me. It gives 'undefined reference' for all curl functions.
Should I check availability of any other file for these errors?
Thanks
& Regards
Prashant Sharma
On Mon, Mar 3, 2008 at 2:53 PM, Grey Man <greymanvoip at gmail.com> wrote:
> 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.
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080303/e29e405b/attachment.htm
More information about the asterisk-users
mailing list