Loading...
 
Skip to main content

System Workbench for STM32


GDB internal error

If I create a new C++ project it works great with the default main.c with an infinite loop. If I change the file extension to .cpp I get this error:

/home/build/work/GCC-5-0-build/src/gdb/gdb/cp-namespace.c:343: internal-error: cp_search_static_and_baseclasses: Assertion `nameprefix_len + 1 == ':'' failed.

Also, I have another C++ project that works great and in this debug session I get "no source file named" error in GDB for files that are just relevant for the other project (this is just a blank project).

Any idea what's wrong here?