FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index FiveWin for Harbour/xHarbour Errors in New Build
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Errors in New Build
Posted: Wed May 01, 2013 11:19 PM
I have encountered errors in the new build:

Using Microsoft Visual C 2012 / Harbour:

Unresolved external symbol _Hb_extIsNil referenced in function _HB_FUN+RELOADSRTF

Using xBuilder/Pelles C/ xHarbour commercial:

Unresolved externals =
_png_sig_cmp
_png_create_write
_png_create_info
_png_set_longjmp_fn
_png_set_IHDR
_png_malloc
_png_init_io
_png_set_rows
_png_write_png
_png_free
_png_destory_write_struct
_png_create_read_struct
_png_destroy_read_struct
_png_set_read_fn
_png_read_info
_png_get_IHDR
_png_get_valid
_png_set_tRNS_to_alpha
_png_set_gray_to_rgb
_png_set_bgr
_png_set_strip_16
_png_read_update_info
_png_get_channels
_png_get_rowbytes
_png_read_image
_png_get_io_ptr

I also noticed that there is a more recent version of Harbour than I possess, but it is bcc only. How about one for Microsoft Visual C 2010 ?

Thanks.
Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Errors in New Build
Posted: Wed May 01, 2013 11:31 PM

Before someone suggests that I link the png.lib file from xHb ( commercial ), there is no such library.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors in New Build
Posted: Thu May 02, 2013 03:56 AM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Errors in New Build
Posted: Thu May 02, 2013 02:22 PM

There are still errors for missing variables, this time from the png.lib:

_snprintf
_CIpow
_iob

Also, please note the missing file in the MSVC build attempt.

Finally, you have the BCC build for Harbour, but is there also a more recent Microsoft build ? Could that perhaps address the issue for the missing file I mentioned ( in the original post of this thread ).

Thanks.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Errors in New Build
Posted: Thu May 02, 2013 07:26 PM

Hi Antonio,

fwh 13 04 also gives me an error : xLINK: error: Unresolved external symbol '__snprintf referenced from png.lib(png.obj)&'

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors in New Build
Posted: Thu May 02, 2013 08:09 PM

Tim,

The problems with those symbols are due to the use of PellesC. They exist in Microsoft C but not on PellesC (used by xhb). You should ask xhb about a PNG library compatible with xHarbour (this alredy exists). Maybe it exists for xhb commercial and I simply don't know it.

I am going to build a recent Harbour with VS2010 so you can try it.

A quick workaround is to declare a dummy function for:

function FWOpenPngFile() ; return 0

and include it in your main PRG. It will disable the need (and availability) of the PNG library

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Errors in New Build
Posted: Thu May 02, 2013 08:32 PM

I don't really have a need to open a dialog with the xHB.com people ... that's why I've been moving to the MSVC version.

So, I still get the error on my MSVC builds:

Missing external _hb_extIsNil which is used in the Richedit program and drawn from _HB_FUN_RELOADASRTF

If I can get this resolved I should be up to date !

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Errors in New Build
Posted: Fri May 03, 2013 05:36 AM
Antonio Linares wrote:Tim,

The problems with those symbols are due to the use of PellesC. They exist in Microsoft C but not on PellesC (used by xhb). You should ask xhb about a PNG library compatible with xHarbour (this alredy exists). Maybe it exists for xhb commercial and I simply don't know it.

I am going to build a recent Harbour with VS2010 so you can try it.

A quick workaround is to declare a dummy function for:

function FWOpenPngFile() ; return 0

and include it in your main PRG. It will disable the need (and availability) of the PNG library


Hi Antonio,

I used to fwh 13.03 without any problem using png.lib that is given link from you. There is not any change. just compile with 13.04.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors in New Build
Posted: Fri May 03, 2013 10:22 AM

Hakan,

Are you using xhb.com ?

Could you please list here the libs that you are linking ? thanks

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Errors in New Build
Posted: Fri May 03, 2013 10:49 AM
Antonio Linares wrote:Hakan,

Are you using xhb.com ?

Could you please list here the libs that you are linking ? thanks


Hi,

I use xHarbour Builder commercial.

there is only this extra libs in my xbp file.

[D:\xHB\c_lib\Win\iphlpapi.lib]

[D:\ONEMLI\PPP\ent\SKeyLE32.lib]

[D:\ONEMLI\HASP\haspw32.lib]

[D:\PRG\520\objektw.lib.xbp]

[D:\PRG\LIB_EXTRA\png.lib]

[D:\PRG\LIB_EXTRA\mem32.lib]

[D:\PRG\LIB_EXTRA\send32.lib]
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors in New Build
Posted: Fri May 03, 2013 11:00 AM

Hakan,

Are you using FWH 13.04 ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Errors in New Build
Posted: Fri May 03, 2013 11:13 AM
Antonio Linares wrote:Hakan,

Are you using FWH 13.04 ?


Yes. I have checked the fivewin.ch.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors in New Build
Posted: Fri May 03, 2013 12:42 PM

Tim,

How do your settings compare with Hakan's ?

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Errors in New Build
Posted: Fri May 03, 2013 01:59 PM

Antonio,

I added the function you suggested and I was able to get the build with the xHb version.

HOWEVER, my concern now is with the MSVC build which I can't get because of the missing external I mentioned above. It appears to have nothing to do with the .png issue. I need to resolve that because most of my testing now is with the MSVC build and Harbour.

Tim

Tim Stone
http://www.MasterLinkSoftware.com
http://www.autoshopwriter.com
timstone@masterlinksoftware.com
Using: FWH 23.10 with Harbour 3.2.0 / Microsoft Visual Studio Community 2022-24 32/64 bit
Posts: 44162
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors in New Build
Posted: Fri May 03, 2013 03:10 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com