Page 3 of 4

Re: Errors in New Build

PostPosted: Sun May 05, 2013 9:36 pm
by TimStone
I've tried 4 times but Google keeps rejecting it ... and its a zip

Re: Errors in New Build

PostPosted: Sun May 05, 2013 10:32 pm
by Antonio Linares
Tim,

Please rename zip as zop and gmail will accept it, thanks :-)

Re: Errors in New Build

PostPosted: Wed May 08, 2013 4:11 pm
by David Williams
I installed the latest FWH 13.4 with xHarbour March 27 2013 and I now have a problem with png.lib. I get the following errors:
Error: Unresolved external '_crc32' referenced from D:\XHARBOUR\LIB\PNG.LIB|png
Error: Unresolved external '_inflateReset' referenced from D:\XHARBOUR\LIB\PNG.LIB|png
Error: Unresolved external '_inflateInit_' referenced from D:\XHARBOUR\LIB\PNG.LIB|pngread
Error: Unresolved external '_inflate' referenced from D:\XHARBOUR\LIB\PNG.LIB|pngrutil
Error: Unresolved external '_inflateEnd' referenced from D:\XHARBOUR\LIB\PNG.LIB|pngread
Error: Unresolved external '_deflateEnd' referenced from D:\XHARBOUR\LIB\PNG.LIB|pngwutil
Error: Unresolved external '_deflateInit2_' referenced from D:\XHARBOUR\LIB\PNG.LIB|pngwutil
Error: Unresolved external '_deflateReset' referenced from D:\XHARBOUR\LIB\PNG.LIB|pngwutil
Error: Unresolved external '_deflate' referenced from D:\XHARBOUR\LIB\PNG.LIB|pngwutil

When I downloaded a larger/newer version of png.lib from google, as suggested by Antonio in an earlier post, I now get this:
Error: 'D:\XHARBOUR\LIB\PNG.LIB' contains invalid OMF record, type 0x21 (possibly COFF)

Can someone please tell me what I need or where I can get a valid version of png.lib?

TIA
David

Re: Errors in New Build

PostPosted: Wed May 08, 2013 6:43 pm
by Antonio Linares

Re: Errors in New Build

PostPosted: Wed May 08, 2013 10:10 pm
by David Williams
Muchas gracias Antonio,
Perfecto
David :)

Re: Errors in New Build

PostPosted: Sat Jun 15, 2013 2:25 pm
by Horizon
Hi Antonio,

I am trying to compile Vs2010_make sample. (one.exe)

I have added png.lib (from my archive library) that is used from xHb commercial. it gives these errors.

Code: Select all  Expand view
png.lib(png.obj) : error LNK2019: unresolved external symbol _inflateReset referenced in function _png_reset_zstream
png.lib(pngrutil.obj) : error LNK2001: unresolved external symbol _inflateReset
png.lib(pngwrite.obj) : error LNK2019: unresolved external symbol _deflate referenced in function _png_write_flush
png.lib(pngwutil.obj) : error LNK2001: unresolved external symbol _deflate
png.lib(pngwrite.obj) : error LNK2019: unresolved external symbol _deflateEnd referenced in function _png_write_destroy
png.lib(pngread.obj) : error LNK2019: unresolved external symbol _inflateInit_ referenced in function _png_create_read_struct_2
png.lib(pngread.obj) : error LNK2019: unresolved external symbol _inflate referenced in function _png_read_row
png.lib(pngrutil.obj) : error LNK2001: unresolved external symbol _inflate
png.lib(pngread.obj) : error LNK2019: unresolved external symbol _inflateEnd referenced in function _png_read_destroy
png.lib(pngwutil.obj) : error LNK2019: unresolved external symbol _deflateInit2_ referenced in function _png_write_IHDR
png.lib(pngwutil.obj) : error LNK2019: unresolved external symbol _deflateReset referenced in function _png_write_compressed_data_out
one.exe : fatal error LNK1120: 9 unresolved externals
 


I have downloaded the png.lib that you have given the link. it gives the this errors.

Code: Select all  Expand view
D:\PRG\LIB_EXTRA\png.lib : fatal error LNK1136: invalid or corrupt file


What should I do for compiling?

Thanks.

Re: Errors in New Build

PostPosted: Sat Jun 15, 2013 3:14 pm
by albeiroval
Hi Tim,

Have the make file for msvc 2012 to UEStudio?

Thank you,

Best regards,

Re: Errors in New Build

PostPosted: Sun Jun 16, 2013 7:27 pm
by Horizon
Horizon wrote:Hi Antonio,

I am trying to compile Vs2010_make sample. (one.exe)

I have added png.lib (from my archive library) that is used from xHb commercial. it gives these errors.

Code: Select all  Expand view
png.lib(png.obj) : error LNK2019: unresolved external symbol _inflateReset referenced in function _png_reset_zstream
png.lib(pngrutil.obj) : error LNK2001: unresolved external symbol _inflateReset
png.lib(pngwrite.obj) : error LNK2019: unresolved external symbol _deflate referenced in function _png_write_flush
png.lib(pngwutil.obj) : error LNK2001: unresolved external symbol _deflate
png.lib(pngwrite.obj) : error LNK2019: unresolved external symbol _deflateEnd referenced in function _png_write_destroy
png.lib(pngread.obj) : error LNK2019: unresolved external symbol _inflateInit_ referenced in function _png_create_read_struct_2
png.lib(pngread.obj) : error LNK2019: unresolved external symbol _inflate referenced in function _png_read_row
png.lib(pngrutil.obj) : error LNK2001: unresolved external symbol _inflate
png.lib(pngread.obj) : error LNK2019: unresolved external symbol _inflateEnd referenced in function _png_read_destroy
png.lib(pngwutil.obj) : error LNK2019: unresolved external symbol _deflateInit2_ referenced in function _png_write_IHDR
png.lib(pngwutil.obj) : error LNK2019: unresolved external symbol _deflateReset referenced in function _png_write_compressed_data_out
one.exe : fatal error LNK1120: 9 unresolved externals
 


I have downloaded the png.lib that you have given the link. it gives the this errors.

Code: Select all  Expand view
D:\PRG\LIB_EXTRA\png.lib : fatal error LNK1136: invalid or corrupt file


What should I do for compiling?

Thanks.


Any comment?

Re: Errors in New Build

PostPosted: Mon Jun 17, 2013 6:15 am
by Horizon
Hi,

I have added hbzlib.lib to make file and it has been RESOLVED.

Thanks

Re: Errors in New Build

PostPosted: Mon Jun 17, 2013 4:07 pm
by Antonio Linares
Hakan,

I missed your previous posts, sorry.

One general comment that I would like to do regarding the unresolved external symbols that appear sometimes when we build our EXEs is that to solve it is as easy as making a search for the function name inside all the LIBs files. I use Total Commander files search feature for this, and in a moment you can locate the missing lib that you need :-)

Re: Errors in New Build

PostPosted: Mon Jun 17, 2013 6:48 pm
by Horizon
Antonio Linares wrote:Hakan,

I missed your previous posts, sorry.

One general comment that I would like to do regarding the unresolved external symbols that appear sometimes when we build our EXEs is that to solve it is as easy as making a search for the function name inside all the LIBs files. I use Total Commander files search feature for this, and in a moment you can locate the missing lib that you need :-)


Thank you very much for usefull trick.

Re: Errors in New Build

PostPosted: Mon Jun 17, 2013 8:46 pm
by TimStone
Sorry for the delay.

The Make file for UE Studio is in FWH 13.05. Look for the Application _vc32 file and use that one. You will need to modify it to your particular path files but otherwise it should work.

Tim

Re: Errors in New Build

PostPosted: Thu Jul 04, 2013 3:27 pm
by juanjogascem
Buenas, acabo de adquirir la nueva version de Febereo de 2013 y al linkar me daba errores
He seguido los hilos y he bajado una version de PNG.LIB, pero me da el siguiente error.
PNG.LIB contains invalid OMF record, type 0x21.

El caso es que al compilar algun ejemplo sencillo no me da error, pero cuando intento compilar una aplicacion compleja, co VERCE es cuando sucede.

Saludos
Juanjo

Re: Errors in New Build

PostPosted: Thu Jul 04, 2013 4:30 pm
by TimStone
Antonio posted a link for downloading the proper png file. You want to use that one.

I have no problem with the png.lib. Perhaps I just don't actually call anything in it.

I have a very complex app ( about 4 MB of source code ) and it works fine using MSVC 2010 or 2012 with Harbour and FWH. There will be few changes needed, but when you are done, the result will be a smooth running program using the latest coding tools.

Tim

Re: Errors in New Build

PostPosted: Thu Jul 04, 2013 6:01 pm
by Antonio Linares
Juanjo,

SI usas xHarbour gratuito y Borland, usa esta librería:
https://code.google.com/p/harbour-and-xharbour-builds/downloads/detail?name=png.zip