It works, thanks.
------------------ Original ------------------
From: "Sebastian Huber"<sebastian.hu...@embedded-brains.de>;
Date: Thu, Dec 5, 2019 02:29 PM
To: "devel"<devel@rtems.org>;
Subject: Re: undefined reference to `z_inflateEnd'
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.hu...@embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel