This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

undefined reference to operator delete using SEGGER Embedded Studio

Hi!

I am using SEGGER Embedded Studio for some of the projects. I do utilize C++ in the projects wherever possible and have found that I cannot make the delete operator work with the toolchain setup that the Embedded Studio is providing.

When trying to alleviate this with -lstdc++ linker flag, I get cannot find -lstdc++.

On another note the new operator works.

I know that using dynamic memory allocation there are risks to consider e.g. use at your own risk. I am just trying to figure how to make the destructors work when ending the liftime of an object.

Cheers!

Related