hbmk2 errors

hbmk2 errors

Postby mosh1 » Sun Apr 14, 2013 5: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
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: hbmk2 errors

Postby Antonio Linares » Sun Apr 14, 2013 6:01 pm

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: hbmk2 errors

Postby mosh1 » Sun Apr 14, 2013 6:14 pm

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

Postby mosh1 » Sun Apr 14, 2013 9: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 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
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: hbmk2 errors

Postby Antonio Linares » 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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: hbmk2 errors

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

Re: hbmk2 errors

Postby Antonio Linares » Mon Apr 15, 2013 5:54 am

Mosh,

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: hbmk2 errors

Postby mosh1 » Mon Apr 15, 2013 12:56 pm

Antonio Linares wrote:Mosh,

Are you using MinGW 32 or 64 bits ?



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

Re: hbmk2 errors

Postby Antonio Linares » Mon Apr 15, 2013 3:01 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: hbmk2 errors

Postby mosh1 » Mon Apr 15, 2013 4:41 pm



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

Re: hbmk2 errors

Postby Antonio Linares » Mon Apr 15, 2013 6: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: hbmk2 errors

Postby Antonio Linares » Mon Apr 15, 2013 6:16 pm

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

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: hbmk2 errors

Postby mosh1 » Mon Apr 15, 2013 6: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.
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: hbmk2 errors

Postby Antonio Linares » Mon Apr 15, 2013 9: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
User avatar
Antonio Linares
Site Admin
 
Posts: 42099
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: hbmk2 errors

Postby mosh1 » Mon Apr 15, 2013 9: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
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 39 guests