<div>Hi Tilghman,</div>
<div> </div>
<div>Thanks for taking interest in my problem.</div>
<div> </div>
<div>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>.</div>
<div>After adding the code I compiled the asterisk code and got the error:
<dir><font size="2">
<p>channel.o(.text+0x....): channel.c:xxxx: undefined reference to 'curl_global_init'</p>
<p> </p></font></dir></div>
<div>Thanks </div>
<div>& </div>
<div>Regards,</div>
<div> </div>
<div>Prashant Sharma</div>
<div> </div>
<div> </div>
<div>On Friday 29 February 2008 08:10:40 Prashant Sharma wrote:<br>><i> When I try to add CURL code to file channel.c we get an error - undefined<br></i>><i> reference to curl_easy_init.<br></i>><i> I've added #include <curl/curl.h> so the code compiles fine.<br>
</i>><i> this error is generated by the linker, even though func_curl.c is compiled</i></div>><i> and linked with no errors<br></i>><i> My asterisk machine have curl and curl-devel 7.12 installed.<br></i>><i> Asterisk version i am using is 1.4.17.<br>
</i><br>Let's start with, why are you adding curl code to channel.c?<br><br>-- <br>Tilghman<br>