C++ support with debug optimiations #debugging


mbarrett@...
 

Hi All,

We're trying to turn on debug optimizations, with C++ support. We have the following settings in our prj.conf:
CONFIG_DEBUG_OPTIMIZATIONS=y
CONFIG_NO_OPTIMIZATIONS=y

but this leads to an undefined reference to vtable. Anyone have any ideas why this might be, and if there's a way to resolve it?

Thanks,
Marshal


mbarrett@...
 

We figured out the issue. There are some other config dependencies that I was unaware of but fiddling in menuconfig helped make it clear. These also need set (along with CONFIG_CPLUSPLUS obviously).
CONFIG_NEWLIB_LIBC=y
CONFIG_LIB_CPLUSPLUS=y