AnsweredAssumed Answered

What is the proper way to link in a library with S32DS Power PC?

Question asked by Ron Lewis on Jan 23, 2017
Latest reply on Jan 24, 2017 by stanish

I keep getting the following error:

 

c:/freescale/s32_power_v1.1/cross_tools/powerpc-eabivle-4_9/bin/../lib/gcc/powerpc-eabivle/4.9.2/../../../../powerpc-eabivle/bin/real-ld.exe: cannot find -lMPC5644A_SDK_001.lib
collect2.exe: error: ld returned 1 exit status
elf32ppcsim
make: *** [TestApplication.elf] Error 1

 

I have added the path to the lib in the properties/c\C++ General\Paths and Symbols:

 

args file looks like this:

 

"./Project_Settings/Startup_Code/startup.o"
"./src/application.o"
-L"C:/DEV_AREA/myproject_sdk/S32DS/mpc5644a_sdk/Debug"
-v
-T
"C:/DEV_AREA/myproject_sdk/S32DS/TestApplication/Project_Settings/Linker_Files/56xx_flash.ld"
-Wl,-Map,"TestApplication.map"
-Xlinker
--print-gc-sections
-mcpu=e200z4
-specs=ewl_c9x.specs
-mhard-float
--sysroot="C:/Freescale/S32_Power_v1.1/S32DS/e200_ewl2"
-lMPC5644A_SDK_001.lib

 

Why is it not finding the lib?

Outcomes