zynq -- cannot find -lxil

If I import existing C++ ARM applications into SDK after the Build All or Clean All task is run in the project, error messages similar to the following appear in the SDK console:

Building target: simple_cpp_0.elf
Invoking: ARM g++ linker
arm-xilinx-eabi-g++ -Wl,-T -Wl,../src/lscript.ld -L../../cpp_bsp_0/ps7_cortexa9_0/lib -o "simple_cpp_0.elf"  ./src/main.o   -Wl,--start-group,-lxil,-lgcc,-lc,-lstdc++,--end-group
/proj/xbuilds/2013.1_0315_1/installs/lin64/SDK/2013.1/gnu/arm/lin/bin/../lib/gcc/arm-xilinx-eabi/4.7.2/../../../../arm-xilinx-eabi/bin/ld: cannot find -lxil
collect2: error: ld returned 1 exit status
make: *** [simple_cpp_0.elf] Error 1

How can I resolve this issue?

To work around this issue, right-click on the BSP in the Project Explorer view in SDK, and select Build Project as shown in the image below:

build_project.png
build_project.png
原文地址:https://www.cnblogs.com/lizhi0755/p/3301296.html