This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

ARMCC and CMake armlink problem

Hi,

I'm trying to build my project using ARMCC and CMake but I'm having difficulties with the linking step.

The project is building fine with ARM-GCC but when I tried to build it with ARMCC the linker complained about the following error:

Fatal error: L3900U: Unrecognized option '-L/(path to my library)/my_library'.

What I understand is that the "-L" option is not a valid option for armlink but I'm not sure how to fix it.

I created the separate toolchain file for ARMCC and I can build the project successfully but can't link it. Any help would be extremely appreciated.

I'm using Ubuntu with CMake version cmake version 3.21.3 and Component: Arm Compiler for Embedded FuSa 6.16.1.0 (dev drop 0).

Thanks in advance