FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH / xHarbour.com Unresolved external symbol
Posts: 16
Joined: Tue May 19, 2009 07:28 PM
FWH / xHarbour.com Unresolved external symbol
Posted: Fri Jun 29, 2012 12:58 AM

Hello All,

I have just installed the latest xHarbour (non Beta) release from xHarbour.com and FWH 12.05 and have the following message when I compile:

xLINK: error: Unresolved external symbol '_SendInput referenced from FiveHCM.lib(KEYBRD.obj)'.
xLINK: error: Unresolved external symbol '_GlobalMemoryStatusEx referenced from FiveHCM.lib(MEM.obj)'.
xLINK: error: Unresolved external symbol '__chkstk referenced from FiveHCM.lib(C5CNEW.obj)'.

NOTE: I have perfomed a clean build. Worls with my old (very old) version of FWH and xHB.

Can anyone please advise a solution?

Cheers,

Pat

Pat Driscoll

Australia
Posts: 16
Joined: Tue May 19, 2009 07:28 PM
Re: FWH / xHarbour.com Unresolved external symbol
Posted: Fri Jun 29, 2012 12:59 AM

Thanks for your email Antonio.

Pat Driscoll

Australia
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH / xHarbour.com Unresolved external symbol
Posted: Fri Jun 29, 2012 01:02 AM

Pat,

As I commented you by email:

Please link these libraries too:

http://code.google.com/p/harbour-and-xh ... bcan=2q=

http://code.google.com/p/harbour-and-xh ... bcan=2q=

thanks :-)

&&&&

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 16
Joined: Tue May 19, 2009 07:28 PM
Re: FWH / xHarbour.com Unresolved external symbol
Posted: Fri Jun 29, 2012 01:23 AM

Thank you Antonio.

I now only have one unresolved external:

xLINK: error: Unresolved external symbol '__chkstk referenced from FiveHCM.lib(C5CNEW.obj)'.

Cheers,

Pat.

Pat Driscoll

Australia
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH / xHarbour.com Unresolved external symbol
Posted: Fri Jun 29, 2012 07:13 AM
Pat,

I just emailed a modified lib to you that does not require chkstk :-)

For general infomation: _chkstk is automatically invoked by the (Microsoft) C compiler when a C function uses too much (over 4 Kb) local C variables. In this case, the variables should be dinamically allocated using hb_xgrab() and freed later on with hb_xfree():

http://www.codeguru.com/cpp/v-s/debug/article.php/c19241/Adventures-with-chkstk.htm
regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion