It works, thanks.

------------------ Original ------------------
From:&nbsp;"Sebastian Huber"<sebastian.hu...@embedded-brains.de&gt;;
Date:&nbsp;Thu, Dec 5, 2019 02:29 PM
To:&nbsp;"devel"<devel@rtems.org&gt;;

Subject:&nbsp;Re: undefined reference to `z_inflateEnd'



On 05/12/2019 02:46, jameszxj wrote:
&gt;&nbsp; &nbsp; &nbsp; &nbsp;When I try to call 
rtems_fdt_add_shell_command(​) to support 
&gt; device tree,&nbsp; some link errors occurs.
&gt;&nbsp; &nbsp; &nbsp; &nbsp; I have added -lz in link command line, and I 
have tried to change 
&gt; the position of "-lz", but link errors still threre.
&gt; 
&gt; error message:
&gt; 
d:/msys64/opt/rtems/5.1/bin/../lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld.exe:
 
&gt; 
D:/msys64/opt/rtems/5.1/arm-rtems5/xilinx_zynq_nsaboard/lib\librtemscpu.a(rtems-fdt.o):
 
&gt; in function `rtems_fdt_load':
&gt; 
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:
 
&gt; undefined reference to `z_inflateInit_'

Using "-lrtemscpu -lz" should work.

-- 
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone&nbsp;&nbsp; : +49 89 189 47 41-16
Fax&nbsp;&nbsp;&nbsp;&nbsp; : +49 89 189 47 41-09
E-Mail&nbsp; : sebastian.hu...@embedded-brains.de
PGP&nbsp;&nbsp;&nbsp;&nbsp; : 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

Reply via email to