Hi ,
when I try to compile a sample console RO project Delphi raise this exception:
[DCC Error] E2597 C:\Program Files (x86)\Embarcadero\Studio\21.0\bin\ld-linux.exe: error: cannot find -lz
c:\program files (x86)\embarcadero\studio\21.0\lib\Linux64\release\System.ZLib.o:System.ZLib:function System::Zlib::deflate(System::Zlib::z_stream&, int): error: undefined reference to ‘deflate’
c:\program files (x86)\embarcadero\studio\21.0\lib\Linux64\release\System.ZLib.o:System.ZLib:function System::Zlib::deflateEnd(System::Zlib::z_stream&): error: undefined reference to ‘deflateEnd’
c:\program files (x86)\embarcadero\studio\21.0\lib\Linux64\release\System.ZLib.o:System.ZLib:function System::Zlib::inflate(System::Zlib::z_stream&, int): error: undefined reference to ‘inflate’
c:\program files (x86)\embarcadero\studio\21.0\lib\Linux64\release\System.ZLib.o:System.ZLib:function System::Zlib::inflateEnd(System::Zlib::z_stream&): error: undefined reference to ‘inflateEnd’
c:\program files (x86)\embarcadero\studio\21.0\lib\Linux64\release\System.ZLib.o:System.ZLib:function System::Zlib::deflateReset(System::Zlib::z_stream&): error: undefined reference to ‘deflateReset’
c:\program files (x86)\embarcadero\studio\21.0\lib\Linux64\release\System.ZLib.o:System.ZLib:function System::Zlib::inflateReset(System::Zlib::z_stream&): error: undefined reference to ‘inflateReset’
c:\program files (x86)\embarcadero\studio\21.0\lib\Linux64\release\System.ZLib.o:System.ZLib:function System::Zlib::crc32(unsigned int, unsigned char*, unsigned int): error: undefined reference to ‘crc32’
c:\program files (x86)\embarcadero\studio\21.0\lib\Linux64\release\System.ZLib.o:System.ZLib:function System::Zlib::deflateInit_(System::Zlib::z_stream&, int, char*, int): error: undefined reference to ‘deflateInit_’
c:\program files (x86)\embarcadero\studio\21.0\lib\Linux64\release\System.ZLib.o:System.ZLib:function System::Zlib::inflateInit_(System::Zlib::z_stream&, char*, int): error: undefined reference to ‘inflateInit_’
c:\program files (x86)\embarcadero\studio\21.0\lib\Linux64\release\System.ZLib.o:System.ZLib:function System::Zlib::deflateInit2_(System::Zlib::z_stream&, int, int, int, int, int, char*, int): error: undefined reference to ‘deflateInit2_’
c:\program files (x86)\embarcadero\studio\21.0\lib\Linux64\release\System.ZLib.o:System.ZLib:function System::Zlib::inflateInit2_(System::Zlib::z_stream&, int, char*, int): error: undefined reference to ‘inflateInit2_’
I have already configured the Linux environment (Ubuntu 20.04 server) as explained in the documentation:
If I try to compile standard console app or webbrocker Apache module compile fine.
Any help?
Thank you very much