cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Newbie: problem with libraries

From: Philippe de Rochambeau <phiroc_at_free.fr>
Date: Mon, 11 Jun 2007 23:42:10 +0200

> * You can try and find the .lib files that your compiler is
presumably looking for (I know that the Borland and Microsoft tools
look for these). This option may entail you downloading (or
compiling) another cURL distribution.

But this is the only win32/XP windows 2000 (libcurl-7.16.2-win32-ssl-
sspi.zip) libcurl distribution, strangely enough.

No .lib files there:

libcurl-7.16.2/lib:

- libcurl-4.dll
- libcurl.a
- libcurl.dll.a
- libcurl.la

Does anyone know why the win32 distribution does not include any .lib
files?

phiroc

On 11 juin 07, at 21:10, Andre Guibert de Bruet wrote:

> On Jun 11, 2007, at 12:33 PM, phiroc_at_free.fr wrote:
>
>> I am trying to compile my first curlib application on Windows
>> using OpenWatcom.
>>
>> When I compile getinfo.c, I get the following messages:
>>
>> wlink name curltest d all SYS nt op m op maxe=25 op q op symf
>> @curltest.lk1
>> Error! E2028: __imp_curl_easy_init_ is an undefined reference
>> Error! E2028: __imp_curl_easy_setopt_ is an undefined reference
>> Error! E2028: __imp_curl_easy_perform_ is an undefined reference
>> Error! E2028: __imp_curl_easy_getinfo_ is an undefined reference
>> Error! E2028: __imp_curl_easy_cleanup_ is an undefined reference
>> ...
>>
>> This sounds like a linking error. Unfortunately, the files in the
>> lib directory
>> have .dll, .a, .dll.a, and .la extensions, which, I think, Watcom
>> does not
>> understand. What shall I do?
>
> You basically have two options:
> * You can forget compile-time symbol resolution and use LoadLibrary
> then GetProcAddress for each function that you need to call. Or:
> * You can try and find the .lib files that your compiler is
> presumably looking for (I know that the Borland and Microsoft tools
> look for these). This option may entail you downloading (or
> compiling) another cURL distribution.
>
> Cheers,
>
> /* Andre Guibert de Bruet * 6f43 6564 7020 656f 2e74 4220 7469
> 6a20 */
> /* Code poet / Sysadmin * 636f 656b 2e79 5320 7379 6461 696d
> 2e6e */
> /* GSM: +1 734 846 8758 * 5520 494e 2058 6c73 7565 6874 002e
> 0000 */
> /* WWW: siliconlandmark.com * C/C++, Java, Perl, PHP, SQL, XHTML,
> XML */
>
>
Received on 2007-06-11