error al compilar

Post Reply
jpcavagnaro
Posts: 155
Joined: Tue Oct 11, 2016 1:02 pm
Location: Luján, bs. as.

error al compilar

Post 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
Jorge
Saludos.
jpcavagnaro
Posts: 155
Joined: Tue Oct 11, 2016 1:02 pm
Location: Luján, bs. as.

Re: error al compilar

Post by jpcavagnaro »

Ya solucione, era la rutina que generaba el código QR, la reescribí.

Saludos
Jorge
Jorge
Saludos.
Taavi
Posts: 90
Joined: Mon Nov 21, 2005 10:29 am

Re: error al compilar

Post 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).
User avatar
Antonio Linares
Site Admin
Posts: 42259
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: error al compilar

Post by Antonio Linares »

Dear Taavi,

Please add this code to any of your PRGs:

Code: Select all | Expand

#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
regards, saludos

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

Re: error al compilar

Post by Antonio Linares »

This is the right code to properly compile:

Code: Select all | Expand

#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
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply