FWH 12.03 and MinGW

Post Reply
User avatar
IBTC
Posts: 103
Joined: Sat Oct 18, 2008 8:13 pm
Location: Stuttgart, Germany
Contact:

FWH 12.03 and MinGW

Post 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.
Best Regards,
Ruediger Alich

---
HMG 3.1.3 | FTDN/FWH 13.12 | Harbour 3.2 | BCC/MinGW | Windows XP/Vista/7/8/10 (32/64-Bit), Wine (Linux/Mac) - started 1999 with FW, 1989 with Clipper
nnicanor
Posts: 296
Joined: Fri Apr 23, 2010 4:30 am
Location: Colombia

Re: FWH 12.03 and MinGW

Post by nnicanor »

Tienes que agregar la libreria

-liphlpapi

Slds
Nicanor Martinez M.
Auditoria y Sistemas Ltda.
MicroExpress Ltda.
FW + FWH + XHARBOUR + HARBOUR + PELLES C + XDEVSTUDIO + XEDIT + BCC + VC_X86 + VCC_X64 + MINGW + R&R Reports + FastReport + Tdolphin + ADO + MYSQL + MARIADB + ORACLE
nnicanor@yahoo.com
nnicanor
Posts: 296
Joined: Fri Apr 23, 2010 4:30 am
Location: Colombia

Re: FWH 12.03 and MinGW

Post by nnicanor »

Excusme,

Please add -liphlpapi library,

Regards,
Nicanor Martinez M.
Auditoria y Sistemas Ltda.
MicroExpress Ltda.
FW + FWH + XHARBOUR + HARBOUR + PELLES C + XDEVSTUDIO + XEDIT + BCC + VC_X86 + VCC_X64 + MINGW + R&R Reports + FastReport + Tdolphin + ADO + MYSQL + MARIADB + ORACLE
nnicanor@yahoo.com
User avatar
IBTC
Posts: 103
Joined: Sat Oct 18, 2008 8:13 pm
Location: Stuttgart, Germany
Contact:

Re: FWH 12.03 and MinGW

Post 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.
Best Regards,
Ruediger Alich

---
HMG 3.1.3 | FTDN/FWH 13.12 | Harbour 3.2 | BCC/MinGW | Windows XP/Vista/7/8/10 (32/64-Bit), Wine (Linux/Mac) - started 1999 with FW, 1989 with Clipper
Post Reply