complie error with 0.99beta,xe10.2

Issue #127 resolved
sunway0112 created an issue

Just create a project with one form,and put a button.

[DCC Error] E2597 G:\Program Files\Embarcadero\Studio\19.0\bin\ld-linux.exe: error: cannot find -lz

g:\program files\embarcadero\studio\19.0\lib\Linux64\debug\System.ZLib.o:System.ZLib:function System::Zlib::deflate(System::Zlib::z_stream&, int): error: undefined reference to 'deflate' g:\program files\embarcadero\studio\19.0\lib\Linux64\debug\System.ZLib.o:System.ZLib:function System::Zlib::deflateEnd(System::Zlib::z_stream&): error: undefined reference to 'deflateEnd' g:\program files\embarcadero\studio\19.0\lib\Linux64\debug\System.ZLib.o:System.ZLib:function System::Zlib::inflate(System::Zlib::z_stream&, int): error: undefined reference to 'inflate' g:\program files\embarcadero\studio\19.0\lib\Linux64\debug\System.ZLib.o:System.ZLib:function System::Zlib::inflateEnd(System::Zlib::z_stream&): error: undefined reference to 'inflateEnd' g:\program files\embarcadero\studio\19.0\lib\Linux64\debug\System.ZLib.o:System.ZLib:function System::Zlib::inflateReset(System::Zlib::z_stream&): error: undefined reference to 'inflateReset' g:\program files\embarcadero\studio\19.0\lib\Linux64\debug\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_' g:\program files\embarcadero\studio\19.0\lib\Linux64\debug\System.ZLib.o:System.ZLib:function System::Zlib::inflateInit2_(System::Zlib::z_stream&, int, char, int): error: undefined reference to 'inflateInit2_'

Comments (3)

  1. Eugene Kryukov repo owner

    This is not CrossVcl, but RTL's Zlib issue. Try to install ZLib to your linux machine - "sudo apt install zlib" and then update Linux SDK in Delphi

  2. Log in to comment