title: undefined reference to __cxa_end_cleanup'
body: <p>I'm trying to build a C++ project however as it finishes it throws this error:</p>
  
  <pre><code>undefined reference to __cxa_end_cleanup'
  </code></pre>
  
  <p>The toolchain used is ARM GCC 4.7.3 and the Linker custom flags is:</p>
  
  <pre><code>-mthumb -march=armv6-m -T .\Generated_Source\PSoC4\cm0gcc.ld -g -Wl,-Map,${OutputDir}\${ProjectShortName}.map -specs=nano.specs -Wl,--gc-sections
  </code></pre>
  
  <p>What is the general reason for the error above? And what linker flags would solve this error?</p>