Page 1 of 1

xHarbour project link errors

PostPosted: Mon Jan 16, 2006 4:48 pm
by James Bott
I have been using Harbour and now I am trying to get started with xHarbour. I am getting the following errors:

Project: TTest, Environment: FWxH:
iLink32.Exe -Gn -aa -Tpe -s @TTest.bcl
Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland
Error: Unresolved external '_HB_FUN_HB_DBG_VMSTKLCOUNT' referenced from C:\FWH\LIB\FIVEHX.LIB|HARBOUR
Error: Unresolved external '_HB_FUN_HB_DBG_VMPARLLIST' referenced from C:\FWH\LIB\FIVEHX.LIB|HARBOUR
Error: Unresolved external '_HB_FUN_HB_DBG_VMVARLGET' referenced from C:\FWH\LIB\FIVEHX.LIB|HARBOUR
Error: Unresolved external '_HB_FUN_HB_DBG_VMVARSLEN' referenced from C:\FWH\LIB\FIVEHX.LIB|HARBOUR

I am using FWH 2.6, May 2005 build. The xHarbour ver is 0.92.0 which has a file date of 1/5/2004. Also Borland C. I am wondering if I need a newer version of the xHarbour compiler? Does anyone have a version that they know is compatible with FWH 2.6? If so, could you mail me a copy? I can't find one on the net anywhere. Or can I use the latest version of xHarbour?

I am also using xMate which is new to me. Perhaps I have it configured wrong. I found it strange that xMate came pre-configured for about 20 environments but none of them were for FW, FWH, or FWxH. I am linking in the VM.LIB which looks like the one that is the problem.

Any other ideas?

James

Re: xHarbour project link errors

PostPosted: Mon Jan 16, 2006 5:00 pm
by Enrico Maria Giordano
If I remember correctly, you can define those functions as empty functions.

EMG

PostPosted: Mon Jan 16, 2006 6:14 pm
by James Bott
Enrico,

OK, here is my entire program:

Code: Select all  Expand view
#include "fivewin.ch"

function main()
   msgInfo("Hello World")
return nil

function hb_dbg_vmstklcount()
return nil
function hb_dbg_vmparllist()
return nil
function hb_dbg_vmvarlget()
return nil
function hb_dbg_vmvarslen()
return nil

I also eliminated xMate and I am just using buildx.bat. The program compiles without error, but when I run it, nothing happens (I don't get the "Hello World" message).

Any more ideas?

James

PostPosted: Mon Jan 16, 2006 6:33 pm
by Antonio Linares
James,

I assume you are using /n at buildx.bat when compiling, right ?

PostPosted: Mon Jan 16, 2006 6:43 pm
by James Bott
Antonio,

Yes, I am using the /n in the standard buildx.bat with only slight modifications for paths. Here is the line from the file:

%hdir%\bin\harbour %1 /n /i%hdir%\include;%fwdir%\include /w /p %2 %3 > clip.log

James

PostPosted: Mon Jan 16, 2006 6:48 pm
by Antonio Linares
James,

I would suggest you to use the most recent xHarbour version, tested by FiveTech, that can be downloaded from:

www.fivetechsoft.com/files/xharbour.exe

and FWH 2.7 january 2006.

PostPosted: Mon Jan 16, 2006 10:28 pm
by Rick Lipkin
James

I just sent you by private e-mail the FWH27, xHarbour 99.51 ( borland and msvc ) xMate environments.

FWH27 and the latest cvs 99.51 have to be used together .. lots of changes made to xHarbour and FWH... ( ie .. dbfdbt is no longer needed .. pcrepos and hbsix supersceed )

If you are using FWH26 .. delete the hbsix and pcrepos libs from the environments and replace with dbfdbt.

Hope this helps.

Rick Lipkin
SC Dept of Health, USA