cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: res returns 6 in the sample code

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Thu, 1 Feb 2001 13:46:09 +0100 (MET)

On Thu, 1 Feb 2001 pit_at_paradise.net.nz wrote:

> I just compiled libcurl with Borland C++ Builder 5 STD.
>
> I could manage this without error. ^^ ( i hope i didn't mistaken
> compiling the library though...)
>
> But when i do the first sample. The 'res' gets error NO.6,
> CURLE_COULDNT_RESOLVE_HOST, everytime.

Did you do the WSAStartup() call properly? I'm pretty sure you didn't and
then this is very likely to be the problem.

Have look at how src/main.c does it.

Mentioned in the FAQ as item 5.4.

-- 
  Daniel Stenberg -- curl project maintainer -- http://curl.haxx.se/
_______________________________________________
Curl-library mailing list
Curl-library_at_lists.sourceforge.net
http://lists.sourceforge.net/lists/listinfo/curl-library
Received on 2001-02-01