Greetings all!
I search solution for ZLib & GZIP(priority) using in Lazarus from Delphi. As a base, I'm use
Delphi.Zlib sources, and want to implement Lazarus support into it.
Project sources compile ok, but compiler can't link .obj files, and I have that errors:
Note: DWARF debug information cannot be used with smart linking on this target, switching to static linking
project1.lpr(20,1) Error: Undefined symbol: ZLIBEXAPI_DEFLATEINIT_$TZSTREAMREC$LONGINT$PCHAR$LONGINT$$LONGINT
project1.lpr(20,1) Error: Undefined symbol: ZLIBEXAPI_DEFLATEINIT2_$crcB53E13EB
project1.lpr(20,1) Error: Undefined symbol: ZLIBEXAPI_DEFLATE$TZSTREAMREC$LONGINT$$LONGINT
project1.lpr(20,1) Error: Undefined symbol: ZLIBEXAPI_DEFLATEEND$TZSTREAMREC$$LONGINT
project1.lpr(20,1) Error: Undefined symbol: ZLIBEXAPI_DEFLATERESET$TZSTREAMREC$$LONGINT
project1.lpr(20,1) Error: Undefined symbol: ZLIBEXAPI_INFLATEINIT_$TZSTREAMREC$PCHAR$LONGINT$$LONGINT
project1.lpr(20,1) Error: Undefined symbol: ZLIBEXAPI_INFLATEINIT2_$TZSTREAMREC$LONGINT$PCHAR$LONGINT$$LONGINT
project1.lpr(20,1) Error: Undefined symbol: ZLIBEXAPI_INFLATE$TZSTREAMREC$LONGINT$$LONGINT
project1.lpr(20,1) Error: Undefined symbol: ZLIBEXAPI_INFLATEEND$TZSTREAMREC$$LONGINT
project1.lpr(20,1) Error: Undefined symbol: ZLIBEXAPI_INFLATERESET$TZSTREAMREC$$LONGINT
project1.lpr(20,1) Error: Undefined symbol: ZLIBEXAPI_ADLER32$LONGINT$formal$LONGINT$$LONGINT
project1.lpr(20,1) Error: Undefined symbol: ZLIBEXAPI_CRC32$LONGINT$formal$LONGINT$$LONGINT
project1.lpr(20,1) Error: Undefined symbol: memcpy
project1.lpr(20,1) Error: Undefined symbol: memset
project1.lpr(20,1) Error: Undefined symbol: zcalloc
project1.lpr(20,1) Error: Undefined symbol: zcfree
project1.lpr(20,1) Error: Undefined symbol: z_errmsg
project1.lpr(20,1) Error: Undefined symbol: __ImageBase
project1.lpr(20,1) Fatal: There were 18 errors compiling module, stopping
How to resolve that? Also I have sources of Zlib as *.c files, how to make FPC/Lazarus compatible *.obj files from it?