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
Re: Errors in New Build
Posted: Sun May 05, 2013 09:36 PM

I've tried 4 times but Google keeps rejecting it ... and its a zip

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: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors in New Build
Posted: Sun May 05, 2013 10:32 PM

Tim,

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

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 82
Joined: Fri Mar 03, 2006 06:26 PM
Re: Errors in New Build
Posted: Wed May 08, 2013 04:11 PM

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

Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors in New Build
Posted: Wed May 08, 2013 06:43 PM
regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 82
Joined: Fri Mar 03, 2006 06:26 PM
Re: Errors in New Build
Posted: Wed May 08, 2013 10:10 PM

Muchas gracias Antonio,
Perfecto
David :)

Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Errors in New Build
Posted: Sat Jun 15, 2013 02:25 PM
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 (fw): Select all Collapse
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 (fw): Select all Collapse
D:\PRG\LIB_EXTRA\png.lib : fatal error LNK1136: invalid or corrupt file


What should I do for compiling?

Thanks.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 400
Joined: Tue Oct 16, 2007 05:51 PM
Re: Errors in New Build
Posted: Sat Jun 15, 2013 03:14 PM

Hi Tim,

Have the make file for msvc 2012 to UEStudio?

Thank you,

Best regards,

Saludos,
Regards,

Albeiro Valencia
www.avcsistemas.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Errors in New Build
Posted: Sun Jun 16, 2013 07:27 PM
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 (fw): Select all Collapse
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 (fw): Select all Collapse
D:\PRG\LIB_EXTRA\png.lib : fatal error LNK1136: invalid or corrupt file


What should I do for compiling?

Thanks.


Any comment?
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Errors in New Build
Posted: Mon Jun 17, 2013 06:15 AM

Hi,

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

Thanks

Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors in New Build
Posted: Mon Jun 17, 2013 04:07 PM

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 :-)

regards, saludos

Antonio Linares
www.fivetechsoft.com
Posts: 1387
Joined: Fri May 23, 2008 01:33 PM
Re: Errors in New Build
Posted: Mon Jun 17, 2013 06:48 PM
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.
Regards,



Hakan ONEMLI



Harbour & MSVC 2022 & FWH 23.06
Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Errors in New Build
Posted: Mon Jun 17, 2013 08:46 PM

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

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: 103
Joined: Wed May 31, 2006 08:49 AM
Re: Errors in New Build
Posted: Thu Jul 04, 2013 03:27 PM

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

Posts: 3022
Joined: Fri Oct 07, 2005 01:45 PM
Re: Errors in New Build
Posted: Thu Jul 04, 2013 04:30 PM

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

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: 44158
Joined: Thu Oct 06, 2005 05:47 PM
Re: Errors in New Build
Posted: Thu Jul 04, 2013 06:01 PM
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
regards, saludos

Antonio Linares
www.fivetechsoft.com