FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Unresolved externals
Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Unresolved externals
Posted: Fri Sep 05, 2008 06:37 PM
Hi,

This sample:
Code (fw): Select all Collapse
#include "FiveWin.ch"

PROCEDURE Main()

  MsgInfo( getNetCardId() )
   
RETURN

gives these unresolved extarnals:

xLINK: error: Unresolved external symbol '__chkstk'.
xLINK: error: Unresolved external symbol '_GetAdaptersInfo'.

I'm using FWH 8.08 and latest xHarbour Builder.

Patrick
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Unresolved externals
Posted: Fri Sep 05, 2008 07:43 PM

Patrick,

Regarding _GetAdaptersInfo:

Your C compiler should provide a iphlpapi.lib from c:\windows\system32\iphlpapi.dll. If you don't have it, we can help you to build one from the DLL. It is just an import library. It contains no code.

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Unresolved externals
Posted: Fri Sep 05, 2008 07:48 PM

Patrick,

Regarding __chkstk:

Your C compiler should provide it, as it is a standard function used by Microsoft and Borland C compilers:

http://msdn.microsoft.com/en-us/library/ms648426(VS.85).aspx

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Unresolved externals
Posted: Fri Sep 05, 2008 07:57 PM

Patrick,

This is the asm source code for __chkstk:

http://www.jbox.dk/sanos/source/lib/chkstk.asm.html

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Unresolved externals
Posted: Fri Sep 05, 2008 08:21 PM
Patrick,

We are working to provide you an OBJ module that may not require __chkstk.
http://msdn.microsoft.com/en-us/library/9598wk25(VS.80).aspx
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Unresolved externals
Posted: Fri Sep 05, 2008 08:36 PM

Patrick,

Please link this OBJ before FiveHCM.lib and lets see if it is ok:

http://rapidshare.com/files/142921430/netcrdid.obj.html

Thanks for your feedback,

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 246
Joined: Sat Mar 03, 2007 08:42 PM
Unresolved externals
Posted: Sat Sep 06, 2008 07:08 AM
Antonio Linares wrote:Please link this OBJ before FiveHCM.lib and lets see if it is ok:
http://rapidshare.com/files/142921430/netcrdid.obj.html
Thanks for your feedback,

Works just fine now! Thanks :-)

Patrick
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Unresolved externals
Posted: Sat Sep 06, 2008 03:32 PM

Patrick,

Thanks for the feedback! :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com

Continue the discussion