Unresolved externals

Unresolved externals

Postby Patrick Mast » Fri Sep 05, 2008 6:37 pm

Hi,

This sample:
Code: Select all  Expand view
#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
User avatar
Patrick Mast
 
Posts: 246
Joined: Sat Mar 03, 2007 8:42 pm

Postby Antonio Linares » Fri Sep 05, 2008 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Fri Sep 05, 2008 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Fri Sep 05, 2008 7: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Fri Sep 05, 2008 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Antonio Linares » Fri Sep 05, 2008 8: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Postby Patrick Mast » Sat Sep 06, 2008 7: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
User avatar
Patrick Mast
 
Posts: 246
Joined: Sat Mar 03, 2007 8:42 pm

Postby Antonio Linares » Sat Sep 06, 2008 3:32 pm

Patrick,

Thanks for the feedback! :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42080
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain


Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 81 guests