FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour hbmk2 errors
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
hbmk2 errors
Posted: Sun Apr 14, 2013 05:58 PM

Hi All! I am trying to link application with hbmk2 (Harbour 32, dolphin) :

hbmk2: Processing local make script: hbmk.hbm
hbmk2: Linking... pos32.exe
c:/fwh/lib/FiveH32.lib(objh32/DATABASE.obj):(.text+0x30): multiple definition of `HB_FUN_TDATABASE'
.hbmk/win/mingw/DATABASE.o:DATABASE.c:(.text+0x0): first defined here
C:/Dolph_SRC/lib/HARBOUR/BCC/dolphin.lib: file not recognized: File format not recognized
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbmk2 errors
Posted: Sun Apr 14, 2013 06:01 PM

That Dolphin lib seems to be for Borland and you are using Microsoft

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Re: hbmk2 errors
Posted: Sun Apr 14, 2013 06:14 PM
Antonio Linares wrote:That Dolphin lib seems to be for Borland and you are using Microsoft

Actually I am using mingw.
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Re: hbmk2 errors
Posted: Sun Apr 14, 2013 09:25 PM

The problem was fixed. I have a new one when linking :

c:/fwh/lib/fivehg.lib(GETTASKS.o):GETTASKS.c:(.text+0x180): undefined reference to GetModuleFileNameExA@16' c:/fwh/lib/fivehgc.lib(RICHEDIT.o):RICHEDIT.C:(.text+0xa45): undefined reference toOleUIPasteSpecialA@4'
c:/fwh/lib/fivehgc.lib(RICHEDIT.o):RICHEDIT.C:(.text+0x12de): undefined reference to GetFileVersionInfoSizeA@8' c:/fwh/lib/fivehgc.lib(RICHEDIT.o):RICHEDIT.C:(.text+0x1346): undefined reference toGetFileVersionInfoA@16'
c:/fwh/lib/fivehgc.lib(RICHEDIT.o):RICHEDIT.C:(.text+0x1370): undefined reference to `VerQueryValueA@16'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbmk2 errors
Posted: Sun Apr 14, 2013 10:37 PM
Mosh,

Please link this richedit.obj:
https://code.google.com/p/fivewin-contributions/downloads/detail?name=RICHEDIT.obj

If you have problems with the linking order, etc. then I will provide you the library with the replacement.

I mentioned in my first answer that you were using Microsoft as you were linking FiveH32.lib. Glad to know you realized it also :-)
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Re: hbmk2 errors
Posted: Sun Apr 14, 2013 10:53 PM
Antonio Linares wrote:Mosh,

Please link this richedit.obj:
https://code.google.com/p/fivewin-contributions/downloads/detail?name=RICHEDIT.obj

If you have problems with the linking order, etc. then I will provide you the library with the replacement.

I mentioned in my first answer that you were using Microsoft as you were linking FiveH32.lib. Glad to know you realized it also :-)



hbmk2: Processing local make script: hbmk.hbm
hbmk2: Linking... pos32.exe
RICHEDIT.o: file not recognized: File format not recognized
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1

PS

I am not sure I am linking it right - I renamed it to richedit.o
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbmk2 errors
Posted: Mon Apr 15, 2013 05:54 AM

Mosh,

Are you using MinGW 32 or 64 bits ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Re: hbmk2 errors
Posted: Mon Apr 15, 2013 12:56 PM
Antonio Linares wrote:Mosh,

Are you using MinGW 32 or 64 bits ?



32 bits
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbmk2 errors
Posted: Mon Apr 15, 2013 03:01 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Re: hbmk2 errors
Posted: Mon Apr 15, 2013 04:41 PM
Antonio Linares wrote:Mosh,

Please try this one:

https://code.google.com/p/fivewin-contributions/downloads/detail?name=mosh.zip


Now I have :

hbmk2: Processing local make script: hbmk.hbm
hbmk2: Linking... pos32.exe
RICHEDIT.o:RICHEDIT.C:(.text+0xa45): undefined reference to `OleUIPasteSpecialA@4'
RICHEDIT.o:RICHEDIT.C:(.text+0x12de): undefined reference to `GetFileVersionInfoSizeA@8'
RICHEDIT.o:RICHEDIT.C:(.text+0x1346): undefined reference to `GetFileVersionInfoA@16'
RICHEDIT.o:RICHEDIT.C:(.text+0x1370): undefined reference to `VerQueryValueA@16'
c:/fwh/lib/fivehg.lib(GETTASKS.o):GETTASKS.c:(.text+0x180): undefined reference to `GetModuleFileNameExA@16'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbmk2 errors
Posted: Mon Apr 15, 2013 06:15 PM

Mosh,

Please link MinGW liboledlg.a too and let me know if that solves the Ole one, thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbmk2 errors
Posted: Mon Apr 15, 2013 06:16 PM

MinGW libversion.a for Get... functions

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Re: hbmk2 errors
Posted: Mon Apr 15, 2013 06:51 PM
Antonio Linares wrote:MinGW libversion.a for Get... functions


Now I have only this error :

hbmk2: Processing local make script: hbmk.hbm
hbmk2: Linking... pos32.exe
c:/fwh/lib/fivehg.lib(GETTASKS.o):GETTASKS.c:(.text+0x180): undefined reference to `GetModuleFileNameExA@16'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1



PS

How can I link these libraries without copying the to working directory ?

-Lc:\hb32\comp\mingw\lib\ -llibversion

is ignored.
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbmk2 errors
Posted: Mon Apr 15, 2013 09:21 PM
Mosh,

Please link MinGW libpsapi.a also

How can I link these libraries without copying the to working directory ?

-Lc:\hb32\comp\mingw\lib\ -llibversion

is ignored.


I recently reported it to Viktor, but he seems not to agree to have the libs in a different folder from the standard path where they are created by the Harbour's make
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Re: hbmk2 errors
Posted: Mon Apr 15, 2013 09:54 PM
Antonio Linares wrote:Mosh,

Please link MinGW libpsapi.a also

How can I link these libraries without copying the to working directory ?

-Lc:\hb32\comp\mingw\lib\ -llibversion

is ignored.


I recently reported it to Viktor, but he seems not to agree to have the libs in a different folder from the standard path where they are created by the Harbour's make


Harbour Terminal: Raw stream console
Harbour 3.2.0dev (Rev. 18859)
Windows XP 5.1.2600 Service Pack 3
DS avail=403140KB OS avail=2076536KB EMM avail=0KB MemStat:Off MT:On
hbmk2: Processing local make script: hbmk.hbm
hbmk2: Linking... pos32.exe
c:/fwh/lib/fivehg.lib(GETTASKS.o):GETTASKS.c:(.text+0x180): undefined reference to `GetModuleFileNameExA@16'
collect2: ld returned 1 exit status
hbmk2: Error: Running linker. 1