<div><br></div><div><div>It works, thanks.</div><div><br></div><div style="font-size: 12px;font-family: Arial Narrow;padding:2px 0 2px 0;">------------------ Original ------------------</div><div style="font-size: 12px;background:#efefef;padding:8px;"><div><b>From:</b> "Sebastian Huber"<sebastian.huber@embedded-brains.de>;</div><div><b>Date:</b> Thu, Dec 5, 2019 02:29 PM</div><div><b>To:</b> "devel"<devel@rtems.org>;<wbr></div><div></div><div><b>Subject:</b> Re: undefined reference to `z_inflateEnd'</div></div><div><br></div>On 05/12/2019 02:46, jameszxj wrote:<br>>       When I try to call rtems_fdt_add_shell_command(​) to support <br>> device tree,  some link errors occurs.<br>>        I have added -lz in link command line, and I have tried to change <br>> the position of "-lz", but link errors still threre.<br>> <br>> error message:<br>> d:/msys64/opt/rtems/5.1/bin/../lib/gcc/arm-rtems5/7.4.1/../../../../arm-rtems5/bin/ld.exe: <br>> D:/msys64/opt/rtems/5.1/arm-rtems5/xilinx_zynq_nsaboard/lib\librtemscpu.a(rtems-fdt.o): <br>> in function `rtems_fdt_load':<br>> 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: <br>> undefined reference to `z_inflateInit_'<br><br>Using "-lrtemscpu -lz" should work.<br><br>-- <br>Sebastian Huber, embedded brains GmbH<br><br>Address : Dornierstr. 4, D-82178 Puchheim, Germany<br>Phone   : +49 89 189 47 41-16<br>Fax     : +49 89 189 47 41-09<br>E-Mail  : sebastian.huber@embedded-brains.de<br>PGP     : Public key available on request.<br><br>Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.<br>_______________________________________________<br>devel mailing list<br>devel@rtems.org<br>http://lists.rtems.org/mailman/listinfo/devel</div>