FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour hbmk2 errors
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbmk2 errors
Posted: Mon Apr 15, 2013 10:27 PM

Mosh,

I assume that you are linking MinGW libkernel32.a too, right ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Re: hbmk2 errors
Posted: Tue Apr 16, 2013 01:43 AM
Antonio Linares wrote:Mosh,

I assume that you are linking MinGW libkernel32.a too, right ?


It was not linked by default now I added it too, but it didn't help
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbmk2 errors
Posted: Tue Apr 16, 2013 06:24 AM

Do you still get an unresolved external ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 129
Joined: Sun Oct 09, 2011 03:50 PM
Re: hbmk2 errors
Posted: Tue Apr 16, 2013 12:42 PM
Antonio Linares wrote:Do you still get an unresolved external ?


Yes, the same error :

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: Tue Apr 16, 2013 01:18 PM

Mosh,

Did you link MinGW libpsapi.a ?

regards, saludos

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

Did you link MinGW libpsapi.a ?


Yes. This is my tst32.hbp

tst
RICHEDIT.o
libversion.a
liboledlg.a
libpsapi.a
libkernel32.a

-Lc:\fwh\lib -lfivehg
-Lc:\fwh\lib -lfivehgc
-Lc:\doltest -llibmysql
-Lc:\Dolph_SRC\lib\HARBOUR\MINGW32 -ldolphin

-otst32
-w1 -es0 -p -d__HB30__ -dVERS=103


Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbmk2 errors
Posted: Tue Apr 16, 2013 02:53 PM
regards, saludos

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

Please link this GETTASKS.o also:

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


Now it link w/o errors. Thanks! :-)
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbmk2 errors
Posted: Tue Apr 16, 2013 03:50 PM

Mosh,

Thanks for your feedback :-)

These changes will be included in next FWH build

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 63
Joined: Mon Aug 02, 2010 05:38 PM
Re: hbmk2 errors
Posted: Wed Apr 17, 2013 03:38 PM

Antonio,
I'm the same have link problems building hbmk2. Using buildhm.bat plus libs bvcplr, hbct, xhm, send23 & I cannot link because I'm missing GetModuleFileNameExA@16'.

Where can I find it?

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbmk2 errors
Posted: Wed Apr 17, 2013 06:42 PM

Are you linking C Compiler psapi.lib ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 63
Joined: Mon Aug 02, 2010 05:38 PM
Re: hbmk2 errors
Posted: Wed Apr 17, 2013 08:54 PM

Fixed an error in my link list and it now links correctly.

Unfortunately I'm now getting the error at program load, "ordinal 2143 not found in user23.dll." I'm getting this same error with my other application. I have absolutely no idea what an "ordinal" is.

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: hbmk2 errors
Posted: Wed Apr 17, 2013 10:33 PM

Don,

Have you create an import library yourself from a DLL ?

have you used a DEF file to build it ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 63
Joined: Mon Aug 02, 2010 05:38 PM
Re: hbmk2 errors
Posted: Wed Apr 17, 2013 11:41 PM

Hi, Antonio

I didn't cread an "import library." I have no idea what it is.

I used BUILDHM.bat and added the libraries needed to resolve missing symbols.

Posts: 63
Joined: Mon Aug 02, 2010 05:38 PM
Re: hbmk2 errors
Posted: Wed Apr 17, 2013 11:42 PM

Oops! I misspelled "create."