Page 1 of 1

FWH 12.03 and MinGW

Posted: Fri Apr 20, 2012 5:12 pm
by IBTC
If I compile with the current release of Harbour the FWH sample netcard.prg:

Code: Select all

buildg.bat netcard
 
I get:
┌────────────────────────────────────────────────────────────────────────────┐
│ FiveWin for Harbour 12.03 and GCC - Mar. 2012 Harbour development power │▄
│ (c) FiveTech, 1993-2012 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7 │█
└────────────────────────────────────────────────────────────────────────────┘█
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Compiling...
Harbour 3.0.0 (Rev. 16951)
Copyright (c) 1999-2011, http://harbour-project.org/
Compiling 'netcard.prg' and generating preprocessed output to 'netcard.ppo'...
Lines 5, Functions/Procedures 1
Generating C source output to 'netcard.c'... Done.

.\..\lib/fivehgc.lib(NETCRDID.o):NETCRDID.C:(.text+0xc): undefined reference to `__chkstk_ms'
.\..\lib/fivehgc.lib(NETCRDID.o):NETCRDID.C:(.text+0x30): undefined reference to `GetAdaptersInfo@8'
.\..\lib/fivehgc.lib(NETCRDID.o):NETCRDID.C:(.text+0x16c): undefined reference to `__chkstk_ms'
.\..\lib/fivehgc.lib(NETCRDID.o):NETCRDID.C:(.text+0x190): undefined reference to `GetAdaptersInfo@8'
.\..\lib/fivehgc.lib(PROFILE.o):PROFILE.C:(.text+0x5d): undefined reference to `__chkstk_ms'
.\..\lib/fivehgc.lib(PROFILE.o):PROFILE.C:(.text+0x177): undefined reference to `__chkstk_ms'
.\..\lib/fivehgc.lib(C5CNEW.o):C5CNEW.C:(.text+0x63bd): undefined reference to `__chkstk_ms'
collect2: ld returned 1 exit status
* Link errors *
If I compile with the current nightly of Harbour build I get:
┌────────────────────────────────────────────────────────────────────────────┐
│ FiveWin for Harbour 12.03 and GCC - Mar. 2012 Harbour development power │▄
│ (c) FiveTech, 1993-2012 for Microsoft Windows 9X/NT/200X/ME/XP/Vista/7 │█
└────────────────────────────────────────────────────────────────────────────┘█
  ▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
Compiling...
Harbour 3.1.0dev (Rev. 17402)
Copyright (c) 1999-2012, http://harbour-project.org/
Compiling 'netcard.prg' and generating preprocessed output to 'netcard.ppo'...
Lines 5, Functions/Procedures 1
Generating C source output to 'netcard.c'... Done.

.\..\lib/fivehgc.lib(NETCRDID.o):NETCRDID.C:(.text+0x30): undefined reference to `GetAdaptersInfo@8'
.\..\lib/fivehgc.lib(NETCRDID.o):NETCRDID.C:(.text+0x190): undefined reference to `GetAdaptersInfo@8'
collect2: ld returned 1 exit status
* Link errors *
I always used MinGW which is included with Harbour.

Re: FWH 12.03 and MinGW

Posted: Fri Apr 20, 2012 7:50 pm
by nnicanor
Tienes que agregar la libreria

-liphlpapi

Slds

Re: FWH 12.03 and MinGW

Posted: Fri Apr 20, 2012 7:51 pm
by nnicanor
Excusme,

Please add -liphlpapi library,

Regards,

Re: FWH 12.03 and MinGW

Posted: Fri Apr 20, 2012 8:14 pm
by IBTC
nnicanor wrote:Excusme,
No problem :)
nnicanor wrote: Please add -liphlpapi library,
Now it works with current nightly build of Harbour. Thanks a lot.