Luiz said:
>
> For what you need curl. tipclasses do the same thing of hbcurl
Hi Luiz:
I got interested in Curl a few months ago, and realized the package was
becoming predominant in its 'copying a URL -- cURL' role.
Because I now have a need to visit a public site and retrieve (and
parse) some 20,000 pages, and because CURL seems to do this almost
instanteously, and because I am now familiar with the curl.exe command line
executable, I thought it would be advantageous to learn and use Curl
library as a part of my proggie.
So, yesterday, I built it, but (sadly) my new test Curl Package did not
link.
Below is the simple test prg that compiled but failed to link. Hope
someone can resolve this probably simple linking error.
Thanks for the comment/suggestion Luiz.
-Mel Smith
*********************************
// Test program for libcurl
#include "
hbcurl.ch"
#include "
fileio.ch"
#include "
common.ch"
#include "
simpleio.ch"
FUNCTION MAIN( )
local curl
CLS
? Testing set up of the Curl Library Package"
curl := curl_easy_init() // curl is a handle
if (curl > 0)
? "curl is initialized curl="+ntoc(curl)
// carry on with testing and ..
// do the curl_easy_perform() stuff in here
else
? "curl failed to initialize"
endif
curl_easy_cleanup(curl) // cleans up the handle
? "Press key..."
Inkey( 0 )
RETURN NIL
************************
Here are the first three lines of the linkage error file:
*******************************************
Error: Unresolved external 'WSAIoctl' referenced from
C:\XHARBOUR\LIB\HBCURL.LIB|hbcurl
Error: Unresolved external '_curl_global_init_mem' referenced from
C:\XHARBOUR\LIB\HBCURL.LIB|hbcurl
Error: Unresolved external '_curl_global_cleanup' referenced from
C:\XHARBOUR\LIB\HBCURL.LIB|hbcurl
// many similar errors below.
******************************************