Skip to main content
LMehm
Associate III
August 20, 2023
Question

Compile error with InfraredPD_CM0P_wc32_ot.a library.

  • August 20, 2023
  • 2 replies
  • 1023 views

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!

    This topic has been closed for replies.

    2 replies

    ST Technical Moderator
    August 20, 2023

    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

    In order to give better visibility on the answered topics, please click on 'Best answer' on the reply which solved your issue or answered your question. Thanks
    LMehm
    LMehmAuthor
    Associate III
    August 22, 2023

    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.