no debugging symbols C/C++ Origin: Application & API OSI layer 7 · Application Last updated 2 Dec 2026

gdb: (No debugging symbols found in ./app)

gdb can load the program but there is no debug information, so it cannot show source lines or variable names.

Exact message you may see No debugging symbols found(No debugging symbols found ingdb no debugging symbolsno debug info
Seen on: C/C++ GDB Linux

Meaning

Debug info is added by compiling with -g. Release builds, -s (strip) or build systems that default to -O2 without -g leave only machine addresses.

Common causes

  • Compiled without -g
  • Binary stripped
  • CMake CMAKE_BUILD_TYPE=Release
  • Debug symbols in a separate .debug file not installed

⚡ Quick fix

  1. Rebuild with -g -O0 (or RelWithDebInfo)
  2. Install the -dbgsym / debuginfo package
  3. Do not run strip on binaries you want to debug

Detailed fix by platform

GCC

  1. g++ -g -O0 main.cpp -o app

CMake

  1. cmake -DCMAKE_BUILD_TYPE=Debug ..

How to diagnose

  1. Flag — -g used?
  2. Strip — Binary stripped?
  3. Type — Build type?

🔧 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):

call of overloaded is ambiguous — C++: error: call of overloaded 'f(int)' is ambiguous (C/C++)call of overloaded is…cannot declare variable to be of abstract type — C++: error: cannot declare variable 'x' to be of abstract type 'Shape' (pure virtual functions) (C/C++)cannot declare variab…ptrace Operation not permitted — gdb: ptrace: Operation not permitted. / Could not attach to process (C/C++)ptrace Operation not …reference to is ambiguous — C++: error: reference to 'X' is ambiguous (using namespace std conflicts) (C/C++)reference to is ambig…region FLASH overflowed — arm-none-eabi-ld: region `FLASH' overflowed by N bytes (C/C++)region FLASH overflow…Segmentation fault — C/C++: Segmentation fault (core dumped) — SIGSEGV from a null, dangling or out-of-bounds pointer (C/C++)Segmentation faultundefined reference to _sbrk — undefined reference to `_sbrk' / `_write' / `_close' / `_exit' (newlib stubs) (C/C++)undefined reference t…no debugg…

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.