error al compilar

error al compilar

Postby jpcavagnaro » Sat Jan 21, 2023 8:28 am

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

Postby jpcavagnaro » Sat Jan 21, 2023 9:49 am

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

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

Re: error al compilar

Postby Taavi » Sun Mar 05, 2023 11:27 am

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).
Taavi
 
Posts: 89
Joined: Mon Nov 21, 2005 10:29 am

Re: error al compilar

Postby Antonio Linares » Mon Mar 06, 2023 7:51 am

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

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

Re: error al compilar

Postby Antonio Linares » Mon Mar 06, 2023 11:24 am

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
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 94 guests