Initially I encountered the issue when I was trying to move Dimmer Switch zigbee example from C to an empty C++ project. That probably will be long to explain and difficult to replicate but I have a very simply step by step instructions how to replicate that issue in an abstract example.
Prerequisites:
MCUXpresso IDE v11.1.1 [Build 3241] [2020-03-02]
FRDM-KW41Z SDK
Then you go and create a new C++ project:
1. Click New -> Project
2. Select Create a new MCUXpresso IDE C/C++ project.
Then on the first wizard page select frdmkw41z SDK
Then on the second wizard page check:
1. freertos
2. Keep the selected by default driver checks, make sure "common" is checked.
3. Select project type: C++ project
Then click finish and after that add the following call to the main C++ page anywhere to the main() function
InstallIRQHandler(PORTA_IRQn, 0);
Build the project and observe
c:/nxp/mcuxpressoide_11.1.1_3241/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.1.0.202001081728/tools/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: ./drivers/fsl_common.o: in function `InstallIRQHandler':
SRAM: 8780 B 128 KB 6.70%
C:\nxp\Workspace2\SmartSwitch\Debug/../drivers/fsl_common.c:114: undefined reference to `__RAM_VECTOR_TABLE_SIZE_BYTES'
c:/nxp/mcuxpressoide_11.1.1_3241/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.1.0.202001081728/tools/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\nxp\Workspace2\SmartSwitch\Debug/../drivers/fsl_common.c:114: undefined reference to `__VECTOR_RAM'
c:/nxp/mcuxpressoide_11.1.1_3241/ide/plugins/com.nxp.mcuxpresso.tools.win32_11.1.0.202001081728/tools/bin/../lib/gcc/arm-none-eabi/8.3.1/../../../../arm-none-eabi/bin/ld.exe: C:\nxp\Workspace2\SmartSwitch\Debug/../drivers/fsl_common.c:114: undefined reference to `__VECTOR_TABLE'