FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour FWH 11.05 to FWH 14.06 Upgrade Issues
Posts: 52
Joined: Thu Mar 22, 2012 05:43 PM
FWH 11.05 to FWH 14.06 Upgrade Issues
Posted: Tue Jul 01, 2014 08:45 PM

Hi Antonio / FW Support,

I just downloaded my FW 14.06 upgrade. :)
However, I encountered the following unresolved external issues.

What I am missing?

Thank you,

Jose

Environment: BCC582, Harbour 3.2

Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_HB_FUN_HB_COMPILEFROMBUF' referenced from C:\FWH\LIB\FIVEH.LIB|HARBOUR
Error: Unresolved external '_png_get_io_ptr' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_create_read_struct' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_read_fn' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_read_info' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_get_valid' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_tRNS_to_alpha' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_gray_to_rgb' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_bgr' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_strip_16' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_get_IHDR' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_read_update_info' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_get_channels' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_get_rowbytes' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_read_image' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_destroy_read_struct' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_sig_cmp' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_create_write_struct' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_create_info_struct' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_longjmp_fn' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_IHDR' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_malloc' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_init_io' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_set_rows' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_write_png' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_free' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_png_destroy_write_struct' referenced from C:\FWH\LIB\FIVEHC.LIB|FWPNG
Error: Unresolved external '_HB_FUN_WBROWSE' referenced from C:\DEV32\PCR32_WIN8XP_1406\OBJ\LS_FUNCS2.OBJ

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 11.05 to FWH 14.06 Upgrade Issues
Posted: Tue Jul 01, 2014 10:29 PM

Jose,

Please add this library from Harbour hbcplr.lib, also png.lib

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 52
Joined: Thu Mar 22, 2012 05:43 PM
Re: FWH 11.05 to FWH 14.06 Upgrade Issues
Posted: Tue Jul 01, 2014 10:49 PM

Antonio,

There still more unresolved after I added Harbour hbcplr.lib and png.lib.

Do I also need to change libraries with *-bcc.lib, Like the xhb.lib with xhb-bcc.lib, and etc.?

Thank you.

Jose

Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external 'inflateReset' referenced from C:\HARBOUR\LIB\PNG.LIB|png
Error: Unresolved external '_adler32' referenced from C:\HARBOUR\LIB\PNG.LIB|png
Error: Unresolved external '_crc32' referenced from C:\HARBOUR\LIB\PNG.LIB|png
Error: Unresolved external '_deflateEnd' referenced from C:\HARBOUR\LIB\PNG.LIB|pngwutil
Error: Unresolved external '_deflateReset' referenced from C:\HARBOUR\LIB\PNG.LIB|pngwutil
Error: Unresolved external '_deflateInit2
' referenced from C:\HARBOUR\LIB\PNG.LIB|pngwutil
Error: Unresolved external 'deflate' referenced from C:\HARBOUR\LIB\PNG.LIB|pngwutil
Error: Unresolved external '_inflateReset2' referenced from C:\HARBOUR\LIB\PNG.LIB|pngrutil
Error: Unresolved external '_inflateInit2
' referenced from C:\HARBOUR\LIB\PNG.LIB|pngrutil
Error: Unresolved external '_inflate' referenced from C:\HARBOUR\LIB\PNG.LIB|pngrutil
Error: Unresolved external '_inflateEnd' referenced from C:\HARBOUR\LIB\PNG.LIB|pngread
Error: Unresolved external '_HB_FUN_WBROWSE' referenced from C:\DEV32\PCR32_WIN8XP_1406\OBJ\LS_FUNCS2.OBJ

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 11.05 to FWH 14.06 Upgrade Issues
Posted: Wed Jul 02, 2014 03:56 AM

Jose,

Enlaza tambien hbzlib.lib

En cuanto a WBrowse(), puedes mostrarme el código de tu programa en donde lo usas ?

Está en tu LS_FUNCS2.prg

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 52
Joined: Thu Mar 22, 2012 05:43 PM
Re: FWH 11.05 to FWH 14.06 Upgrade Issues
Posted: Wed Jul 02, 2014 01:59 PM
Antonio,

Great! There's only one Unresolved external error left. Here I attached the offending code.

BTW, I am not very good in Spanish. :-)

Thank you,

Jose

Turbo Incremental Link 5.69 Copyright (c) 1997-2005 Borland
Error: Unresolved external '_HB_FUN_WBROWSE' referenced from C:\DEV32\PCR32_WIN8XP_1406\OBJ\LS_FUNCS2.OBJ

Code (fw): Select all Collapse
******************
* Wrapper to call native function browse, mostly used in debugging sessions
* For some reasons Browse is not visibile from script file executed through macro compiler at runtime. Somehow, this forced Harbour to Link Browse.
function ExpBrowse
browse()
return nil
********************
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 11.05 to FWH 14.06 Upgrade Issues
Posted: Wed Jul 02, 2014 05:44 PM

Jose,

Please add this function to your main PRG:

function WBrowse()

return nil

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 52
Joined: Thu Mar 22, 2012 05:43 PM
Re: FWH 11.05 to FWH 14.06 Upgrade Issues
Posted: Wed Jul 02, 2014 08:12 PM

Antonio,

I can now create an EXE, but the EXE terminated right away when started.

Harbour left the following in the compiler's log. Linker's log is fine.

Thanks,

Jose

Harbour 3.2.0dev (r1307082134)
Copyright (c) 1999-2013, http://harbour-project.org/
Compiling '.\LS_FUNCS2.PRG'...

100 100 100 100 200 300 400 500 100 200 100 100 200 300 400 500 600 700 800 900 1000 1100 1200 100 100 100 200 300 400 500 600 100 200
Lines 4524, Functions/Procedures 7
Generating C source output to 'obj\LS_FUNCS2.c'... Done.

Posts: 52
Joined: Thu Mar 22, 2012 05:43 PM
Re: FWH 11.05 to FWH 14.06 Upgrade Issues
Posted: Wed Jul 02, 2014 10:36 PM
Hi Antonio,

It is failing in the line ::new as shown below.

Code (fw): Select all Collapse
alert(ls_trace(5))
    ::super:New( ::nTop, ::nLeft, ::nBottom, ::nRight, ::cCaption, ::nStyle, ::oMenu, ::oBrush,;
                ::oIcon, /*nClrText*/, /*nClrPane*/, /*lVScroll*/ .f., /*lHScroll*/ .f., ::nMenuInfo,;
                /*cBorder*/, ::oWnd, /*lPixel*/ .t. )
alert(ls_trace(5))


Please advise.

Thank you,

Jose
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 11.05 to FWH 14.06 Upgrade Issues
Posted: Thu Jul 03, 2014 03:19 AM

Jose,

Which PRG is that code from ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 946
Joined: Thu Oct 06, 2005 07:05 PM
Re: FWH 11.05 to FWH 14.06 Upgrade Issues
Posted: Thu Jul 03, 2014 04:40 AM

Joe

Try adding this at the top of your prg

ifdef HARBOUR

#ifndef XHARBOUR
#define Super ::super
#endif

endif

Hth

Richard

http://www.cbati.com

Uestudio
Fwh 13.05 Harbour 3.2 MSVC 2013
Posts: 52
Joined: Thu Mar 22, 2012 05:43 PM
Re: FWH 11.05 to FWH 14.06 Upgrade Issues
Posted: Thu Jul 03, 2014 07:16 AM

Antonio / Richard,

Thank you guys for your responses.

It looks like that Richard suggestions works. I can now see my application, but with error message. After the error message window is close my application terminated.

Please advise.

Thank you,

Jose

20140702
23:59:58;(b)TRY@16
__ERRRT_SBASE@0
TMSGBAR:ERROR@0
(b)HBOBJECT@0
Alias TOTALS
PC/Register+(tm) 5.3-20140702 SN0000000001
Error BASE/1004 Message not found: TMSGBAR:AITEM Args: (O:TMSGBAR)

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 11.05 to FWH 14.06 Upgrade Issues
Posted: Thu Jul 03, 2014 07:50 AM

Jose,

Look for TMsgBar:aItem in your code and replace it with TMsgBar:aItems

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 52
Joined: Thu Mar 22, 2012 05:43 PM
Re: FWH 11.05 to FWH 14.06 Upgrade Issues
Posted: Tue Jul 08, 2014 10:32 PM

Antonio,

Great news, the EXE looks like now working after implementing your suggestion.

However, I got the following error when exiting the application. The Application also needs to be manually removed from the Task Manager.

Please advise.

Thank you,

Jose

20140708;15:23:23;(b)TRY@16
(b)TMENU@91
TMENU:DESTROY@0
CPCREG:DESTROY@2120
Alias
PC/Register+(tm) 5.3-20140708 SN0000000001
Error BASE/1066 Argument error: conditional Args: (U:)

Posts: 52
Joined: Thu Mar 22, 2012 05:43 PM
Re: FWH 11.05 to FWH 14.06 Upgrade Issues
Posted: Mon Jul 14, 2014 04:18 AM

Antonio / FWH support,

Any update on this issue? :(

Thank you,

Jose

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: FWH 11.05 to FWH 14.06 Upgrade Issues
Posted: Mon Jul 14, 2014 06:53 AM

Jose,

How are you creating your menu ? Please post here the source code where you create it.

Basically it is the same thing (my guessing) that we talked this weekend in the forums:

Probably DATA l2007 and/or l2010 are nil, and they should be logical.

regards, saludos

Antonio Linares
www.fivetechsoft.com