undefined reference to _Unwind_Resume C/C++ Origin: Application & API OSI layer 7 · Application Last updated 2 Dec 2026

undefined reference to `_Unwind_Resume' / `__gxx_personality_v0'

Exception-handling support code is missing at link time.

Exact message you may see undefined reference to `_Unwind_Resume'undefined reference to `__gxx_personality_v0'undefined reference to `__cxa_
Seen on: C/C++ GCC

Meaning

These symbols come from libgcc_s/libstdc++. They appear when linking C++ objects with gcc instead of g++, or when using -nostdlib.

Common causes

  • Linking C++ code with gcc
  • -nostdlib or -nodefaultlibs without adding libs back
  • Cross-compiler missing libstdc++
  • Mixed C/C++ objects linked as C

⚡ Quick fix

  1. Link with g++ (or -lstdc++)
  2. Add -lgcc_s when needed
  3. Use CXX as the linker in Makefiles

Detailed fix by platform

Make

  1. LD = $(CXX) for targets with C++ objects

How to diagnose

  1. Driver — gcc or g++?
  2. Flags — -nostdlib?
  3. Libs — libstdc++ present?

🔧 Still not fixed?

Many errors look alike. If the steps above didn’t solve it, one of these is probably what you’re facing:

Where this error sits

Origin: Application & API. Errors that are often confused with or caused by this one (click to open):

_GLIBCXX_USE_CXX11_ABI — undefined reference to `std::__cxx11::basic_string' — _GLIBCXX_USE_CXX11_ABI mismatch (C/C++)_GLIBCXX_USE_CXX11_ABIcannot find -l — /usr/bin/ld: cannot find -lssl: No such file or directory (C/C++)cannot find -lfilesystem_error — terminate called after throwing an instance of 'std::filesystem::filesystem_error' what(): filesystem error: cannot ... No such file or directory (C/C++)filesystem_errorrecompile with -fPIC — relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC (C/C++)recompile with -fPICregion FLASH overflowed — arm-none-eabi-ld: region `FLASH' overflowed by N bytes (C/C++)region FLASH overflow…undefined reference to — C/C++: undefined reference to `function' — collect2: error: ld returned 1 exit status (C/C++)undefined reference toundefined reference to boost — undefined reference to `boost::system::...' / `boost::filesystem::...' / `boost::thread::...' (C/C++)undefined reference t…undefined reference to vtable — C++: undefined reference to `vtable for X' — virtual function not defined (C/C++)undefined reference t…undefined…

Explore the map of this error Full error map →

🧠 Still stuck? Analyze your error

Paste the full message, response headers or stack trace — we'll detect the platform and point to the most likely cause.

💬 What worked for others

No tips yet — did something else fix this for you?

Share what worked for you

Tips are checked by an editor before they appear. Links are removed.