hbmk2 errors
hbmk2 errors
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
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
- Antonio Linares
- Site Admin
- Posts: 42660
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 69 times
- Been thanked: 96 times
- Contact:
Re: hbmk2 errors
Antonio Linares wrote:That Dolphin lib seems to be for Borland and you are using Microsoft
Actually I am using mingw.
Re: hbmk2 errors
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 to `OleUIPasteSpecialA@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 to `GetFileVersionInfoA@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
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 to `OleUIPasteSpecialA@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 to `GetFileVersionInfoA@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
- Antonio Linares
- Site Admin
- Posts: 42660
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 69 times
- Been thanked: 96 times
- Contact:
Re: hbmk2 errors
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
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

Re: hbmk2 errors
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
- Antonio Linares
- Site Admin
- Posts: 42660
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 69 times
- Been thanked: 96 times
- Contact:
- Antonio Linares
- Site Admin
- Posts: 42660
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 69 times
- Been thanked: 96 times
- Contact:
Re: hbmk2 errors
Mosh,
Please try this one:
https://code.google.com/p/fivewin-contributions/downloads/detail?name=mosh.zip
Please try this one:
https://code.google.com/p/fivewin-contributions/downloads/detail?name=mosh.zip
Re: hbmk2 errors
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
- Antonio Linares
- Site Admin
- Posts: 42660
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 69 times
- Been thanked: 96 times
- Contact:
Re: hbmk2 errors
Mosh,
Please link MinGW liboledlg.a too and let me know if that solves the Ole one, thanks
Please link MinGW liboledlg.a too and let me know if that solves the Ole one, thanks
- Antonio Linares
- Site Admin
- Posts: 42660
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 69 times
- Been thanked: 96 times
- Contact:
Re: hbmk2 errors
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.
- Antonio Linares
- Site Admin
- Posts: 42660
- Joined: Thu Oct 06, 2005 5:47 pm
- Location: Spain
- Has thanked: 69 times
- Been thanked: 96 times
- Contact:
Re: hbmk2 errors
Mosh,
Please link MinGW libpsapi.a also
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
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
Re: hbmk2 errors
Antonio Linares wrote:Mosh,
Please link MinGW libpsapi.a alsoHow 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