cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Newbie: problem with libraries

From: Andre Guibert de Bruet <andy_at_siliconlandmark.com>
Date: Mon, 11 Jun 2007 15:10:37 -0400

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