undefined reference to `z_inflateEnd'
Sebastian Huber
sebastian.huber at embedded-brains.de
Thu Dec 5 06:29:21 UTC 2019
On 05/12/2019 02:46, jameszxj wrote:
> When I try to call rtems_fdt_add_shell_command() to support
> device tree, some link errors occurs.
> I have added -lz in link command line, and I have tried to change
> the position of "-lz", but link errors still threre.
>
> error message:
> d:/msys64/opt/rtems/5.1/bin/../lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld.exe:
> D:/msys64/opt/rtems/5.1/arm-rtems5/xilinx_zynq_nsaboard/lib\librtemscpu.a(rtems-fdt.o):
> in function `rtems_fdt_load':
> D:\msys64\home\ZXJ\rtems-develop\build-rtems\arm-rtems5\c\xilinx_zynq_nsaboard\cpukit/../../../../../rtems/c/src/../../cpukit/libmisc/rtems-fdt/rtems-fdt.c:555:
> undefined reference to `z_inflateInit_'
Using "-lrtemscpu -lz" should work.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list