错误显示: No symbol table is loaded. Use the "file" command. 解决方法: 原因在编译时没有加上 -g 参数,因此加上就可以了。 g++ test.cpp -g -o test_1 转载于:https://blog.51cto.com/983836259/1393655