I'm looking to pull in some c++ code into a c project in Codewarrior 10.3. The project built and ran fine before I added the new code, but now when I build I get a vague link error that says:
>Undefined : "_exception_table_end__"
>Referenced from "Ex68K_FindExceptionRecord(char*,MWExceptionInfo*)" in
C:/Freescale/CW MCU v10.3/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error
>Undefined : "_exception_table_start__"
>Referenced from "Ex68K_FindExceptionRecord(char*,MWExceptionInfo*)" in
C:/Freescale/CW MCU v10.3/MCU/ColdFire_Tools/Command_Line_Tools/mwldmcf|Linker|Error
>Link failed.
The issue seems to be related to my use of "new" in one of my wrapper functions.
I have -Cpp_Exceptions OFF, since I'm not using them anywhere in my c++ code (and turning then on didn't affect the error). Are there some settings I need to enable/disable? I'm fairly new to mixing c and c++, so I may be missing something obvious.
Thanks.