@opiswahn wrote:
Hi,
i am trying to build a program for an stm32f3 with c++ code. So far so good. But when i try to use a map(std::map m_PortMap), i get this compile error:
“error VGDB1000: undefined reference to ‘__exidx_end'”
“error VGDB1000: undefined reference to ‘__exidx_start'”
in the file unwind-arm-common.inc
I have no idea whats the problem here, can someone make something out of this?
Greets,
**Jürgen**
Hi Jurgen,
It looks like you are missing the below from your linker script:
.ARM.exidx :
{
__exidx_start = .;
*(.ARM.exidx* .gnu.linkonce.armexidx.*)
__exidx_end = .;
} > rom
Make sure you change “rom” to whatever alias you use for your FLASH area. The reason why you need that is because you are linking to libstdc++.a and that lib stores some of its code/data in the “.ARM.exidx” section. Hope that helps.