Build Error

Post Reply
Colin Haig
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am

Build Error

Post by Colin Haig »

Hi Antonio

I downloaded the libs from the 13/02/2013 and the error does not occur when I compile and link.

The error appears to point to this file.
/fivewin/source/internal/lnx.c

home/colin/fivelinux/lib/libfivec.a(lnx.o): In function `button_press_event':
lnx.c:(.text+0xaad): undefined reference to `hb_extIsNil'



CODE: SELECT ALL EXPAND VIEW

gboolean button_press_event( GtkWidget * hWnd, GdkEventButton * event )
{
if( event->button == 1 )
{
hb_vmPushSymbol( pFLH );
hb_vmPushNil();
hb_vmPushLong( WM_LBUTTONDOWN ); // nMsg
hb_vmPushLong( ( HB_ULONG ) event->y ); // nWParam
hb_vmPushLong( ( HB_ULONG ) event->x ); // nLParam
hb_vmPushLong( ( HB_ULONG ) gtk_object_get_data( GTK_OBJECT( hWnd ), "WP" ) );
hb_vmFunction( 4 );
}

return ! HB_ISNIL( -1 ); // FALSE invokes default behavior




Cheers

Colin
Colin Haig

Posts: 213
Joined: Mon Oct 10, 2005 5:10 am
User avatar
Antonio Linares
Site Admin
Posts: 37481
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain
Contact:

Re: Build Error

Post by Antonio Linares »

Colin,

I think that the problem comes from this line:
return ! HB_ISNIL( -1 ); // FALSE invokes default behavior

If you review Harbour/include/hbapi.h you should have:

#define HB_ISNIL( n ) ( hb_param( n, HB_IT_ANY ) == NULL || HB_IS_NIL( hb_param( n, HB_IT_ANY ) ) )

Please check if your hbapi.h has the same, thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
Colin Haig
Posts: 310
Joined: Mon Oct 10, 2005 5:10 am

Re: Build Error

Post by Colin Haig »

Hi Antonio

My hbapi is the same.

regards

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

Re: Build Error

Post by Antonio Linares »

Colin,

Could you provide me remote access to your server ? thanks
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Maurizio
Posts: 705
Joined: Mon Oct 10, 2005 1:29 pm
Contact:

Re: Build Error

Post by Maurizio »

Hello Antonio ,
I have the same problem

fivehc32.lib(RICHEDIT.obj) : error LNK2019: riferimento al simbolo esterno _hb_extIsNil non risolto nella funzione _HB_FUN_RELOA
DASRTF

FWH 13.3 + HARBOUR + Microsoft Visual Studio 10.0\VC

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

Re: Build Error

Post by Antonio Linares »

Maurizio,

You need tu use a more recent Harbour build. Please review this:

http://forums.fivetechsupport.com/viewt ... 67#p142467
regards, saludos

Antonio Linares
www.fivetechsoft.com
Post Reply