Page 1 of 1

error al compilar

PostPosted: Sat Jan 21, 2023 8:28 am
by jpcavagnaro
Hola, estoy compilando y me da estos errores:

Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc.
Error: Unresolved external '_hb_parldef' referenced from C:\FWH2212\LIB\FIVEHC.LIB|STR2HEX
Error: Unresolved external '_hb_retclen_buffer' referenced from C:\FWH2212\LIB\FIVEHC.LIB|STR2HEX
Warning: Public symbol '_HB_FUN_MUESTRU' defined in both module C:\FWH2212\SAMPLES\MIO_FE\MENU1.OBJ and C:\FWH2212\SAMPLES\MIO_FE\MUESTRU.OBJ
Error: Unable to perform link

que me está faltando

Saludos

Re: error al compilar

PostPosted: Sat Jan 21, 2023 9:49 am
by jpcavagnaro
Ya solucione, era la rutina que generaba el código QR, la reescribí.

Saludos
Jorge

Re: error al compilar

PostPosted: Sun Mar 05, 2023 11:27 am
by Taavi
Hello,
I get te same error when compiling with FW202212 (and xHarbour 2018). What was the solution ?

Taavi.


xLINK: error: Unresolved external symbol '_hb_parldef referenced from FiveHCM.lib(STR2HEX.obj)'.
xLINK: error: Unresolved external symbol '_hb_retclen_buffer referenced from FiveHCM.lib(STR2HEX.obj)'.
xLINK: fatal error: 2 unresolved external(s).

Re: error al compilar

PostPosted: Mon Mar 06, 2023 7:51 am
by Antonio Linares
Dear Taavi,

Please add this code to any of your PRGs:
Code: Select all  Expand view
#pragma BEGINDUMP
#include <hbapi.h>

void hb_retclen_buffer( char * szText, HB_SIZE nLen )
{
   void hb_retclen( szText, nLen );
}

int  hb_parldef( int iParam, int iDefValue )
{
   return hb_parl( iParam );
}
#pragma ENDDUMP

Re: error al compilar

PostPosted: Mon Mar 06, 2023 11:24 am
by Antonio Linares
This is the right code to properly compile:
Code: Select all  Expand view
#pragma BEGINDUMP

#include <hbapi.h>

#undef hb_retclen_buffer
#undef hb_parldef

void hb_retclen_buffer( char * szText, int nLen )
{
   hb_retclen( szText, nLen );
}

int hb_parldef( int iParam, int iDefValue )
{
   return hb_parl( iParam );
}

#pragma ENDDUMP