hbmk2 errors

Re: hbmk2 errors

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

Re: hbmk2 errors

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

Re: hbmk2 errors

Postby Antonio Linares » Tue Apr 16, 2013 6:24 am

Do you still get an unresolved external ?
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 » 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
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: hbmk2 errors

Postby Antonio Linares » Tue Apr 16, 2013 1:18 pm

Mosh,

Did you link MinGW libpsapi.a ?
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 » Tue Apr 16, 2013 2: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


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

Re: hbmk2 errors

Postby Antonio Linares » Tue Apr 16, 2013 2:53 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 » Tue Apr 16, 2013 3: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! :D
mosh1
 
Posts: 129
Joined: Sun Oct 09, 2011 3:50 pm

Re: hbmk2 errors

Postby Antonio Linares » Tue Apr 16, 2013 3:50 pm

Mosh,

Thanks for your feedback :-)

These changes will be included in next FWH build
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 DonDrew » Wed Apr 17, 2013 3: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?
DonDrew
 
Posts: 63
Joined: Mon Aug 02, 2010 5:38 pm

Re: hbmk2 errors

Postby Antonio Linares » Wed Apr 17, 2013 6:42 pm

Are you linking C Compiler psapi.lib ?
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 DonDrew » Wed Apr 17, 2013 8: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.
DonDrew
 
Posts: 63
Joined: Mon Aug 02, 2010 5:38 pm

Re: hbmk2 errors

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

Re: hbmk2 errors

Postby DonDrew » 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.
DonDrew
 
Posts: 63
Joined: Mon Aug 02, 2010 5:38 pm

Re: hbmk2 errors

Postby DonDrew » Wed Apr 17, 2013 11:42 pm

Oops! I misspelled "create."
DonDrew
 
Posts: 63
Joined: Mon Aug 02, 2010 5:38 pm

PreviousNext

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: No registered users and 40 guests