cygwin and libcurl on windows...

Daniel Atallah daniel.atallah at gmail.com
Mon Feb 23 12:06:30 EST 2009


On Mon, Feb 23, 2009 at 9:42 AM, arun kumar <arunkumar0107 at gmail.com> wrote:
> thanks for replying .. i did as u said but only to get different set
> of errors....
> first the output of pkg-config --libs libcurl was -lcurl -lssh2 -lssl
> -lcrypto -lz
>
> i then added these to the makefile.mingw
>
> then i received errors like lssh2, lssl, lrcypto dont exist
> so i removed them from the libs variable of makefile.mingw
>
> now when i run  make -f makefile.mingw sen_rec.dll
>
> the errors are
>
> [path]/lib/libcurl.a - undefined reference to
> WSAstartup,WSAcleanup,curl_open,curl_setopt,curl_mkconnc,
> curl_rm_connc, curl_safefree,curl_dupset and so on .........
>
> any help?

Where did you get the libcurl that you're trying to use here?  It
looks like you might be trying to use a cygwin-dependent version which
just isn't going to work.

Note that you can't use a version of libcurl that depends on openssl
(which the version you have does) because of licensing
incompatibility.

-D


>
>
> On Mon, Feb 23, 2009 at 4:48 AM, Craig Harding <craigwharding at gmail.com> wrote:
>> You probably need to add the output of:
>>
>> pkg-config --libs libcurl
>>
>> to your LIBS variable in your Makefile.mingw file.
>>
>> On 2/23/09, arun kumar <arunkumar0107 at gmail.com> wrote:
>>> hi all,
>>>  i tried to create a dll for my c file which uses libcurl functions
>>>  like curl_easy_init using the make command in cygwin (make -f
>>>  makefile.mingw sen_rec.dll).....but there are errors while doing so.
>>>
>>>  undefined reference to 'curl_easy_init'
>>>  undefined reference to 'curl_easy_setopt'....similarly for all curl
>>>  functions  i use.
>>>
>>>  i think this is some linking problem but not able to trace it out........
>>>
>>>  any help?
>>>
>>>  cheers,
>>>  arun
>>>
>>>  _______________________________________________
>>>  Devel mailing list
>>>  Devel at pidgin.im
>>>  http://pidgin.im/cgi-bin/mailman/listinfo/devel
>>>
>>
>
> _______________________________________________
> Devel mailing list
> Devel at pidgin.im
> http://pidgin.im/cgi-bin/mailman/listinfo/devel
>




More information about the Devel mailing list