cancel
Showing results for 
Search instead for 
Did you mean: 

Compile error with InfraredPD_CM0P_wc32_ot.a library.

LMehm
Associate II

Hello!

We have a project for STHS34PF80TR IR sensor.

We are setting the library "InfraredPD_CM0P_wc32_ot.a" in project options, but following compiler error is generated:

c:\st\stm32cubeide_1.11.2\stm32cubeide\plugins\com.st.stm32cube.ide.mcu.externaltools.gnu-tools-for-stm32.10.3-2021.10.win32_1.0.200.202301161003\tools\arm-none-eabi\bin\ld.exe: cannot find -lC:/Users/PC1/Documents/IRTest/IRTest/Middlewares/ST/STM32_InfraredPD_Library/Lib/InfraredPD_CM0P_wc32_ot.a
collect2.exe: error: ld returned 1 exit status
make: *** [makefile:65: IRTest.elf] Error 1

We are using STM32L031F4P7 processor.

Would you please advice!

2 REPLIES 2
Imen.D
ST Employee

Hello @LMehm ,

Make sure to configure properly include paths and check the path of the InfraredPD_CM0P_wc32_ot.a file.

Maybe that files were not in the include folder list.

Then, do a project clean, and rebuild.

Imen

When your question is answered, please close this topic by clicking "Accept as Solution".
Thanks
Imen

Hello @Imen.D!

Thank you for your answer!

I checked all the paths and everything is OK.

Also after project clean and build I am getting the same error again?!

Best regards.