undefined reference to `z_inflateEnd'
jameszxj
jameszxj at gmail.com
Thu Dec 5 06:47:26 UTC 2019
It works, thanks.
------------------ Original ------------------
From: "Sebastian Huber"<sebastian.huber at embedded-brains.de>;
Date: Thu, Dec 5, 2019 02:29 PM
To: "devel"<devel at 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.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
_______________________________________________
devel mailing list
devel at rtems.org
http://lists.rtems.org/mailman/listinfo/devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20191205/b024129d/attachment.html>
More information about the devel
mailing list