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

Link to a C++ function from startup_LPC17xx.s

Hello,

Currently we're compiling a C application which contains startup_LPC17xx.s, an example of which can be seen at ece.uwaterloo.ca/.../startup_LPC17xx.s . It works properly.

However, if we try to compile the entire app in C++, our version of the UART0_IRQHandler function gets its name mangled to _Z16UART0_IRQHandlerz, and the startup_LPC17xx.s file doesn't link to the function anymore.

Is there a way around this, to force startup_LPC17xx.s to link to the desired C++ function?