AnsweredAssumed Answered

LPC546xx  __disable_irq() linker error when called from .c file in a C++ project

Question asked by gbarcan@dialight.com on Jul 10, 2019
Latest reply on Jul 12, 2019 by Omar Anguiano

Has anyone stumbled upon this linker error ?

arm-none-eabi-c++ -nostdlib

-Xlinker --gc-sections -Xlinker

-print-memory-usage -Xlinker

--sort-section=alignment

-mcpu=cortex-m4

-mfpu=fpv4-sp-d16

-mfloat-abi=hard

-mthumb

-lpower_hardabi

other.c:68: undefined reference to `__enable_irq'

 

Calling it from a C++ file seem to link just fine.

Project is set to use NewlibNano.

Outcomes