hbmk2 errors

mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

hbmk2 errors

Post by mosh1 »

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
User avatar
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

Post by Antonio Linares »

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

Antonio Linares
www.fivetechsoft.com
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: hbmk2 errors

Post by mosh1 »

Antonio Linares wrote:That Dolphin lib seems to be for Borland and you are using Microsoft

Actually I am using mingw.
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: hbmk2 errors

Post by mosh1 »

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
User avatar
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

Post by Antonio Linares »

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
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: hbmk2 errors

Post by mosh1 »

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
User avatar
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

Post by Antonio Linares »

Mosh,

Are you using MinGW 32 or 64 bits ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: hbmk2 errors

Post by mosh1 »

Antonio Linares wrote:Mosh,

Are you using MinGW 32 or 64 bits ?



32 bits
User avatar
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

Post by Antonio Linares »

regards, saludos

Antonio Linares
www.fivetechsoft.com
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: hbmk2 errors

Post by mosh1 »



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
User avatar
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

Post by Antonio Linares »

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
User avatar
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

Post by Antonio Linares »

MinGW libversion.a for Get... functions
regards, saludos

Antonio Linares
www.fivetechsoft.com
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: hbmk2 errors

Post by mosh1 »

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.
User avatar
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

Post by Antonio Linares »

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
mosh1
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: hbmk2 errors

Post by mosh1 »

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
Post Reply