Hello! I'm adding a MyDACConnection to my form, but when I try to compile, Delphi 7 shows me erros in ZLib.pas unit telling me that some .obj files were not found. The full error is shown like the text below:
[Error] ZLib.pas(226): File not found: 'deflate.obj'
[Error] ZLib.pas(227): File not found: 'inflate.obj'
[Error] ZLib.pas(228): File not found: 'inftrees.obj'
[Error] ZLib.pas(229): File not found: 'trees.obj'
[Error] ZLib.pas(230): File not found: 'adler32.obj'
[Error] ZLib.pas(231): File not found: 'infblock.obj'
[Error] ZLib.pas(232): File not found: 'infcodes.obj'
[Error] ZLib.pas(233): File not found: 'infutil.obj'
[Error] ZLib.pas(234): File not found: 'inffast.obj'
[Error] ZLib.pas(207): Unsatisfied forward or external declaration: 'deflateInit_'
[Error] ZLib.pas(208): Unsatisfied forward or external declaration: 'deflate'
[Error] ZLib.pas(209): Unsatisfied forward or external declaration: 'deflateEnd'
[Error] ZLib.pas(211): Unsatisfied forward or external declaration: 'inflateInit_'
[Error] ZLib.pas(212): Unsatisfied forward or external declaration: 'inflate'
[Error] ZLib.pas(213): Unsatisfied forward or external declaration: 'inflateEnd'
[Error] ZLib.pas(214): Unsatisfied forward or external declaration: 'inflateReset'
[Error] ZLib.pas(236): Unsatisfied forward or external declaration: '_tr_init'
[Error] ZLib.pas(237): Unsatisfied forward or external declaration: '_tr_tally'
[Error] ZLib.pas(238): Unsatisfied forward or external declaration: '_tr_flush_block'
[Error] ZLib.pas(239): Unsatisfied forward or external declaration: '_tr_align'
[Error] ZLib.pas(240): Unsatisfied forward or external declaration: '_tr_stored_block'
[Error] ZLib.pas(241): Unsatisfied forward or external declaration: 'adler32'
[Error] ZLib.pas(242): Unsatisfied forward or external declaration: 'inflate_blocks_new'
[Error] ZLib.pas(243): Unsatisfied forward or external declaration: 'inflate_blocks'
[Error] ZLib.pas(244): Unsatisfied forward or external declaration: 'inflate_blocks_reset'
[Error] ZLib.pas(245): Unsatisfied forward or external declaration: 'inflate_blocks_free'
[Error] ZLib.pas(246): Unsatisfied forward or external declaration: 'inflate_set_dictionary'
[Error] ZLib.pas(247): Unsatisfied forward or external declaration: 'inflate_trees_bits'
[Error] ZLib.pas(248): Unsatisfied forward or external declaration: 'inflate_trees_dynamic'
[Error] ZLib.pas(249): Unsatisfied forward or external declaration: 'inflate_trees_fixed'
[Error] ZLib.pas(250): Unsatisfied forward or external declaration: 'inflate_trees_free'
[Error] ZLib.pas(251): Unsatisfied forward or external declaration: 'inflate_codes_new'
[Error] ZLib.pas(252): Unsatisfied forward or external declaration: 'inflate_codes'
[Error] ZLib.pas(253): Unsatisfied forward or external declaration: 'inflate_codes_free'
[Error] ZLib.pas(254): Unsatisfied forward or external declaration: '_inflate_mask'
[Error] ZLib.pas(255): Unsatisfied forward or external declaration: 'inflate_flush'
[Error] ZLib.pas(256): Unsatisfied forward or external declaration: 'inflate_fast'
[Fatal Error] uRelatorioDespesas.pas(19): Could not compile used unit 'ZLib.pas'
[SOLVED] Problem with Zlib.pas caused by MyDAC components
[SOLVED] Problem with Zlib.pas caused by MyDAC components
Last edited by juninhodg on Thu 17 Jan 2013 13:25, edited 1 time in total.
-
AndreyZ
Re: Problem with Zlib.pas caused by MyDAC components
Hello,
Such error occurs when you have another (maybe third-party) ZLib units. MyDAC uses ZLib that is supplied with Delphi. Please check that Delphi Library path does not contain a path to another ZLib units.
Such error occurs when you have another (maybe third-party) ZLib units. MyDAC uses ZLib that is supplied with Delphi. Please check that Delphi Library path does not contain a path to another ZLib units.
Re: Problem with Zlib.pas caused by MyDAC components
Hi AndreyZ, I just removed the line that referenced the directory $(DELPHI)/Source/Common/, this directory contains the ZLib.pas unit. As you told me this error was solved after this fix.
But now when I compile and try to open the Form that contains the report with the MyDAC Components it shows me an EClassNotFoundException telling that the TfrxMyDACQuery was not found.
Note: I already added the path "C:\Users\Public\Documents\Devart\MyDAC for Delphi 7\Demos\ThirdParty\FastReport\FR4\" to the Library Path
Thanks for the help!
But now when I compile and try to open the Form that contains the report with the MyDAC Components it shows me an EClassNotFoundException telling that the TfrxMyDACQuery was not found.
Note: I already added the path "C:\Users\Public\Documents\Devart\MyDAC for Delphi 7\Demos\ThirdParty\FastReport\FR4\" to the Library Path
Thanks for the help!
Re: Problem with Zlib.pas caused by MyDAC components
Simple to solve. Just added the units frxDACComponents and frxMYDACComponents in the uses clause. Thanks for the help anyway!
-
AndreyZ
Re: Problem with Zlib.pas caused by MyDAC components
Glad to see that the problem was solved. If any other questions come up, please contact us.