hbcurl

214 views
Skip to first unread message

pcordonet

unread,
Apr 1, 2025, 5:57:09 AMApr 1
to Harbour Users
Hi,

I try to compile hbcurl and work fine.
I try to compile test "hbmk2 multi.prg"
And I have this errors:
hbcurl.lib(core.obj) : error LNK2019: s¡mbolo externo __imp_curl_multi_poll sin resolver al que se hace referencia en la funci¢n HB_FUN_CURL_MULTI_POLL
hbcurl.lib(core.obj) : error LNK2019: s¡mbolo externo __imp_curl_ws_recv sin resolver al que se hace referencia en la funci¢n HB_FUN_CURL_WS_RECV
hbcurl.lib(core.obj) : error LNK2019: s¡mbolo externo __imp_curl_ws_send sin resolver al que se hace referencia en la funci¢n HB_FUN_CURL_WS_SEND
multi.exe : fatal error LNK1120: 3 externos sin resolver

The curl version: curl-8.12.1_3-win64-mingw

Can anyone help, with this errors?
Is this correct version?

Thanks.
Pere

Lorenzo Fiorini

unread,
Apr 1, 2025, 9:12:03 AMApr 1
to harbou...@googlegroups.com

Try with hbmk2 multi.prg hbcurl.hbc.

Best regards,
Lorenzo

--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/843e8306-ab1e-429e-a65b-2a0500f571fdn%40googlegroups.com.
-- 
Il presente messaggio è indirizzato esclusivamente ai destinatari. Tutte le informazioni
contenute, compresi eventuali allegati, sono confidenziali ai sensi del Regolamento (UE)
2016/679 e del D. Lgs. 196/2003. Pertanto ne sono vietati l'inoltro, la divulgazione e la
messa a disposizione in qualunque forma o modo, in mancanza di preventiva autorizzazione
del mittente. Qualora il messaggio Le fosse pervenuto per errore, La invitiamo cortesemente
ad eliminarlo in modo definitivo dando immediato riscontro.

This message is exclusively addressed to the recipients. All the information contained in this
message, including any attachments, is confidential in compliance with Regulation (UE)
2016/679 and Legislative Decree 196/2003. Therefore, forwarding, disclosing and making
the above-mentioned information available without prior authorization from the sender is
forbidden in any form or manner. If you have received this message in error, we kindly invite
you to delete it permanently and to notify the sender.
--
Message has been deleted

pcordonet

unread,
Apr 3, 2025, 2:19:32 AMApr 3
to Harbour Users
I try your solution, but no work.

Any ideas?

Thanks
El dia dimarts, 1 d’abril del 2025 a les 15:12:03 UTC+2, Lorenzo Fiorini va escriure:

Daniel L. Stuardo S.

unread,
Jun 6, 2025, 1:55:24 PMJun 6
to harbou...@googlegroups.com
Hi!

El problema puede estar en que esas funciones tienen otros nombres en el código fuente de la librería.

 __imp_curl_multi_poll ---->  curl_multi_poll
__imp_curl_ws_recv -----> curl_ws_recv
__imp_curl_ws_send -----> curl_ws_send

Como ejemplo, mira el código fuente de la función de la librería HBCURL, programa CORE.C:

HB_FUNC( CURL_WS_SEND )
{
   if( PHB_CURL_is( 1 ) )
   {
      CURLcode res  = ( CURLcode ) HB_CURLE_ERROR;
      size_t   sent = 0;

#if LIBCURL_VERSION_NUM >= 0x075600
      PHB_CURL hb_curl = PHB_CURL_par( 1 );

      if( hb_curl )
         res = curl_ws_send( hb_curl->curl,
                             ( const void * ) hb_parc( 2 ), ( size_t ) hb_parclen( 2 ),
                             &sent,
                             ( curl_off_t ) hb_parnint( 4 ),
                             ( unsigned int ) hb_parnl( 5 ) );
#endif

      hb_storns( ( HB_SIZE ) sent, 3 );
      hb_retnl( res );
   }
   else
      hb_errRT_BASE( EG_ARG, 2010, NULL, HB_ERR_FUNCNAME, HB_ERR_ARGS_BASEPARAMS );
}

Solución?

Buscar en el código fuente de todo HARBOUR qué hace referencia a estas funciones con "___IMP_...", y cambiarlo. Al fin y al cabo, si no funciona, se recompila el código fuente original y usas CURL por llamada al sistema.

Cuando compilo HARBOUR en Linux Debian, debo hacer eso para que la compilación termine de manera aceptable, y para resolver algunos errores que surgen, parecidos al tuyo (cuando me dice que no encuentra tal o cual función). En verdad, me parece que se han olvidado de Linux a la hora de pensar en Harbour.

Espero que te ayude esto.

Saludos!


--
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
Unsubscribe: harbour-user...@googlegroups.com
Web: https://groups.google.com/group/harbour-users
---
You received this message because you are subscribed to the Google Groups "Harbour Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to harbour-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/harbour-users/843e8306-ab1e-429e-a65b-2a0500f571fdn%40googlegroups.com.


--
Cordialmente,
_______________________________
Daniel L. Stuardo
Reply all
Reply to author
Forward
0 new messages