libraries for CURL

libraries for CURL

Postby Natter » Sun Jan 24, 2021 4:43 pm

Hi.

I want to collect an example of Twitter.prg (for Harbour). Attached 2 libraries hbcurl.lib and libcurl.ltb Specified #include "hbcurl.ch" However, when compiling, I get errors detecting built-in CURL functions. What's the problem ?
Natter
 
Posts: 1120
Joined: Mon May 14, 2007 9:49 am

Re: libraries for CURL

Postby Antonio Linares » Sun Jan 24, 2021 5:36 pm

Please post the errors here
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41366
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: libraries for CURL

Postby Natter » Sun Jan 24, 2021 7:36 pm

Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
Error: Unresolved external '_curl_global_init_mem' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_global_cleanup' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_formfree' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_cleanup' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_reset' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_duphandle' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_init' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_pause' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_perform' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_send' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_recv' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_formadd' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_slist_append' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_setopt' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_getinfo' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_slist_free_all' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_escape' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_unescape' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_version' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_version_info' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_easy_strerror' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_getdate' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_escape' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_unescape' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unresolved external '_curl_free' referenced from C:\HARBOUR\LIB\HBCURL.LIB|core
Error: Unable to perform link
Natter
 
Posts: 1120
Joined: Mon May 14, 2007 9:49 am

Re: libraries for CURL

Postby Antonio Linares » Mon Jan 25, 2021 5:43 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41366
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: libraries for CURL

Postby Natter » Mon Jan 25, 2021 4:02 pm

Thanks, Antonio !

Yes, I unzip the file to C:\CURL And how can this help me compile the Twitter.prg example ?
Natter
 
Posts: 1120
Joined: Mon May 14, 2007 9:49 am

Re: libraries for CURL

Postby Natter » Wed Jan 27, 2021 11:13 am

I understand that the libcurl.a and libcurldll.a files are static AC / C ++ libraries under Unix. And how can I use them under Windows ?
Natter
 
Posts: 1120
Joined: Mon May 14, 2007 9:49 am

Re: libraries for CURL

Postby Antonio Linares » Wed Jan 27, 2021 12:32 pm

Please use this Harbour build that already include those libraries for Borland 32 bits:
https://github.com/FiveTechSoft/Harbour_builder/blob/master/harbour_win32_bcc_2020_10_19.zip

this Harbour build that already include those libraries for Microsoft 32 bits:
https://github.com/FiveTechSoft/Harbour ... _10_19.zip

Harbour builds 64 bits including the curl libs:
https://github.com/FiveTechSoft/Harbour_builder
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 41366
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 39 guests