Page 1 of 4
Errors in New Build
Posted:
Wed May 01, 2013 11:19 pm
by TimStone
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.
Re: Errors in New Build
Posted:
Wed May 01, 2013 11:31 pm
by TimStone
Before someone suggests that I link the png.lib file from xHb ( commercial ), there is no such library.
Tim
Re: Errors in New Build
Posted:
Thu May 02, 2013 3:56 am
by Antonio Linares
Re: Errors in New Build
Posted:
Thu May 02, 2013 2:22 pm
by TimStone
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
Re: Errors in New Build
Posted:
Thu May 02, 2013 7:26 pm
by Horizon
Hi Antonio,
fwh 13 04 also gives me an error : xLINK: error: Unresolved external symbol '__snprintf referenced from png.lib(png.obj)&'
Re: Errors in New Build
Posted:
Thu May 02, 2013 8:09 pm
by Antonio Linares
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
Re: Errors in New Build
Posted:
Thu May 02, 2013 8:32 pm
by TimStone
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 !
Re: Errors in New Build
Posted:
Fri May 03, 2013 5:36 am
by Horizon
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.
Re: Errors in New Build
Posted:
Fri May 03, 2013 10:22 am
by Antonio Linares
Hakan,
Are you using xhb.com ?
Could you please list here the libs that you are linking ? thanks
Re: Errors in New Build
Posted:
Fri May 03, 2013 10:49 am
by Horizon
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]
Re: Errors in New Build
Posted:
Fri May 03, 2013 11:00 am
by Antonio Linares
Hakan,
Are you using FWH 13.04 ?
Re: Errors in New Build
Posted:
Fri May 03, 2013 11:13 am
by Horizon
Antonio Linares wrote:Hakan,
Are you using FWH 13.04 ?
Yes. I have checked the fivewin.ch.
Re: Errors in New Build
Posted:
Fri May 03, 2013 12:42 pm
by Antonio Linares
Tim,
How do your settings compare with Hakan's ?
Re: Errors in New Build
Posted:
Fri May 03, 2013 1:59 pm
by TimStone
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
Re: Errors in New Build
Posted:
Fri May 03, 2013 3:10 pm
by Antonio Linares