FWH 2603 Linking Errors

User avatar
RAMESHBABU
Posts: 668
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

FWH 2603 Linking Errors

Post by RAMESHBABU »

Dear Mr.Antonio,

I am getting the following error while linking my application :

Code: Select all | Expand

Embarcadero C++ 7.70 for Win32 Copyright (c) 1993-2023 Embarcadero Technologies, Inc.
Error: Unresolved external '_HB_FUN_HB_VALTOEXP' referenced from D:\NEWPROJECT\FWH_2603\LIB\FIVEHX.LIB|xbrowse
Error: Unresolved external '_HB_FUN_HB_HHASKEY' referenced from D:\NEWPROJECT\FWH_2603\LIB\FIVEHX.LIB|window
Error: Unable to perform link
* Linking errors *

I am using FWH_2603 + BCC77 + xHarbour 1.3.2 Intl. (Simplex) (Build 20260504)

Please give me a solution to avoid these errors.

-Ramesh Babu P

User avatar
Enrico Maria Giordano
Posts: 9054
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: FWH 2603 Linking Errors

Post by Enrico Maria Giordano »

Can you provide a minimal PRG sample showing the error, please?

User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FWH 2603 Linking Errors

Post by Antonio Linares »

Dear Ramesh,

Temporary workaround:

Code: Select all | Expand

#ifdef __XHARBOUR__
  function hb_HHasKey( hHash, xKey )
  return HHasKey( hHash, xKey )

  function hb_ValToExp( uVal )
  return ValToPrgExp( uVal )
  #endif
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Enrico Maria Giordano
Posts: 9054
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: FWH 2603 Linking Errors

Post by Enrico Maria Giordano »

I don't get any errors using neither TWindow nor TXBrowse.

User avatar
RAMESHBABU
Posts: 668
Joined: Fri Oct 21, 2005 5:54 am
Location: Secunderabad (T.S), India

Re: FWH 2603 Linking Errors

Post by RAMESHBABU »

Thank you Mr.Antonio.
It is working Ok Now.

-Ramesh Babu P

User avatar
AIDA
Posts: 887
Joined: Fri Jan 12, 2007 8:35 pm

Re: FWH 2603 Linking Errors

Post by AIDA »

FWH 26.03
Hola también a mi me sale este error :shock:
Error: Unresolved external 'HB_FUN_HB_VALTOEXP' referenced from C:\FWH\LIB\FIVEHX.LIB|xbrowse
Error: Unresolved external 'HB_FUN_HB_HHASKEY' referenced from C:\FWH\LIB\FIVEHX.LIB|window
Error: Unable to perform link

Que es mejor que programar? creo que nada :)
Atropellada pero aqui ando :P

I love Fivewin

séʌǝɹ ןɐ ɐʇsǝ opunɯ ǝʇsǝ
User avatar
Enrico Maria Giordano
Posts: 9054
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: FWH 2603 Linking Errors

Post by Enrico Maria Giordano »

Please look here (hbcompat.ch):

Code: Select all | Expand

#xtranslate hb_HHasKey( [<x,...>] )         => HHasKey( <x> )
#xtranslate hb_ValToExp( [<x,...>] )        => ValToPrgExp( <x> )

And in fivewin.ch:

Code: Select all | Expand

#include "hbcompat.ch"

So you shouldn't get any of those two errors.

User avatar
AIDA
Posts: 887
Joined: Fri Jan 12, 2007 8:35 pm

Re: FWH 2603 Linking Errors

Post by AIDA »

Enrico
Thanks, but the same error keeps appearing. :shock:

Que es mejor que programar? creo que nada :)
Atropellada pero aqui ando :P

I love Fivewin

séʌǝɹ ןɐ ɐʇsǝ opunɯ ǝʇsǝ
User avatar
Enrico Maria Giordano
Posts: 9054
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: FWH 2603 Linking Errors

Post by Enrico Maria Giordano »

Try to add these at top of your code:

Code: Select all | Expand

#xtranslate hb_HHasKey( [<x,...>] )         => HHasKey( <x> )
#xtranslate hb_ValToExp( [<x,...>] )        => ValToPrgExp( <x> )
User avatar
AIDA
Posts: 887
Joined: Fri Jan 12, 2007 8:35 pm

Re: FWH 2603 Linking Errors

Post by AIDA »

Enrico
I did what you indicated, but the error keeps appearing. :?

Que es mejor que programar? creo que nada :)
Atropellada pero aqui ando :P

I love Fivewin

séʌǝɹ ןɐ ɐʇsǝ opunɯ ǝʇsǝ
User avatar
Enrico Maria Giordano
Posts: 9054
Joined: Thu Oct 06, 2005 8:17 pm
Location: Roma - Italia
Contact:

Re: FWH 2603 Linking Errors

Post by Enrico Maria Giordano »

Try this sample:

Code: Select all | Expand

#include "Fivewin.ch"


FUNCTION MAIN()

HB_HHASKEY()
HB_VALTOEXP()

RETURN NIL

Do you get unresolved externals? If yes, try this other:

Code: Select all | Expand

#xtranslate hb_HHasKey( [<x,...>] )         => HHasKey( <x> )
#xtranslate hb_ValToExp( [<x,...>] )        => ValToPrgExp( <x> )


#include "Fivewin.ch"


FUNCTION MAIN()

HB_HHASKEY()
HB_VALTOEXP()

RETURN NIL
User avatar
AIDA
Posts: 887
Joined: Fri Jan 12, 2007 8:35 pm

Re: FWH 2603 Linking Errors

Post by AIDA »

Enrico
Gracias pero sigue con el mismo error
Thanks, but it's still having the same error.

Image

Que es mejor que programar? creo que nada :)
Atropellada pero aqui ando :P

I love Fivewin

séʌǝɹ ןɐ ɐʇsǝ opunɯ ǝʇsǝ
User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FWH 2603 Linking Errors

Post by Antonio Linares »

Querida Aida,

Añade este código a tu app:

Code: Select all | Expand

#ifdef __XHARBOUR__
  function hb_HHasKey( hHash, xKey )
  return HHasKey( hHash, xKey )

  function hb_ValToExp( uVal )
  return ValToPrgExp( uVal )
  #endif
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
AIDA
Posts: 887
Joined: Fri Jan 12, 2007 8:35 pm

Re: FWH 2603 Linking Errors

Post by AIDA »

Hola Antonio use el código que me sugeriste y ahora trono todo :shock:

Image

Que es mejor que programar? creo que nada :)
Atropellada pero aqui ando :P

I love Fivewin

séʌǝɹ ןɐ ɐʇsǝ opunɯ ǝʇsǝ
User avatar
Antonio Linares
Site Admin
Posts: 44515
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: FWH 2603 Linking Errors

Post by Antonio Linares »

Recuerda que las declaraciones STATIC o LOCAL deben ir siempre al inicio de la función, antes de cualquier instrucción ejecutable.

Declara tus variables para evitar "referencias ambiguas" y no olvides cerrar siempre tus funciones con RETURN ...

regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply