Page 2 of 3

Re: hbmk2 errors

PostPosted: Mon Apr 15, 2013 10:27 pm
by Antonio Linares
Mosh,

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

Re: hbmk2 errors

PostPosted: Tue Apr 16, 2013 1:43 am
by mosh1
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

Re: hbmk2 errors

PostPosted: Tue Apr 16, 2013 6:24 am
by Antonio Linares
Do you still get an unresolved external ?

Re: hbmk2 errors

PostPosted: Tue Apr 16, 2013 12:42 pm
by mosh1
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

Re: hbmk2 errors

PostPosted: Tue Apr 16, 2013 1:18 pm
by Antonio Linares
Mosh,

Did you link MinGW libpsapi.a ?

Re: hbmk2 errors

PostPosted: Tue Apr 16, 2013 2:12 pm
by mosh1
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



Re: hbmk2 errors

PostPosted: Tue Apr 16, 2013 2:53 pm
by Antonio Linares

Re: hbmk2 errors

PostPosted: Tue Apr 16, 2013 3:15 pm
by mosh1
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! :D

Re: hbmk2 errors

PostPosted: Tue Apr 16, 2013 3:50 pm
by Antonio Linares
Mosh,

Thanks for your feedback :-)

These changes will be included in next FWH build

Re: hbmk2 errors

PostPosted: Wed Apr 17, 2013 3:38 pm
by DonDrew
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?

Re: hbmk2 errors

PostPosted: Wed Apr 17, 2013 6:42 pm
by Antonio Linares
Are you linking C Compiler psapi.lib ?

Re: hbmk2 errors

PostPosted: Wed Apr 17, 2013 8:54 pm
by DonDrew
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.

Re: hbmk2 errors

PostPosted: Wed Apr 17, 2013 10:33 pm
by Antonio Linares
Don,

Have you create an import library yourself from a DLL ?

have you used a DEF file to build it ?

Re: hbmk2 errors

PostPosted: Wed Apr 17, 2013 11:41 pm
by DonDrew
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.

Re: hbmk2 errors

PostPosted: Wed Apr 17, 2013 11:42 pm
by DonDrew
Oops! I misspelled "create."