Errors in New Build

Errors in New Build

Postby TimStone » 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
User avatar
TimStone
 
Posts: 2950
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Errors in New Build

Postby TimStone » 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
User avatar
TimStone
 
Posts: 2950
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Errors in New Build

Postby Antonio Linares » Thu May 02, 2013 3:56 am

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Errors in New Build

Postby TimStone » Thu May 02, 2013 2: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
User avatar
TimStone
 
Posts: 2950
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Errors in New Build

Postby Horizon » Thu May 02, 2013 7: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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Errors in New Build

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

Re: Errors in New Build

Postby TimStone » Thu May 02, 2013 8: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
User avatar
TimStone
 
Posts: 2950
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Errors in New Build

Postby Horizon » Fri May 03, 2013 5: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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Errors in New Build

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

Re: Errors in New Build

Postby Horizon » 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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Errors in New Build

Postby Antonio Linares » Fri May 03, 2013 11:00 am

Hakan,

Are you using FWH 13.04 ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Errors in New Build

Postby Horizon » 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.04
Horizon
 
Posts: 1322
Joined: Fri May 23, 2008 1:33 pm

Re: Errors in New Build

Postby Antonio Linares » Fri May 03, 2013 12:42 pm

Tim,

How do your settings compare with Hakan's ?
regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Re: Errors in New Build

Postby TimStone » Fri May 03, 2013 1: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
User avatar
TimStone
 
Posts: 2950
Joined: Fri Oct 07, 2005 1:45 pm
Location: Trabuco Canyon, CA USA

Re: Errors in New Build

Postby Antonio Linares » Fri May 03, 2013 3:10 pm

regards, saludos

Antonio Linares
www.fivetechsoft.com
User avatar
Antonio Linares
Site Admin
 
Posts: 42203
Joined: Thu Oct 06, 2005 5:47 pm
Location: Spain

Next

Return to FiveWin for Harbour/xHarbour

Who is online

Users browsing this forum: Google [Bot] and 14 guests