AR# 54999

14.5 EDK, SDK - ARM Compilation fails on imported C++ applications in SDK


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:

AR# 54999
Date 07/12/2013
Status Active
Type General Article