错误显示:

 

    No symbol table is loaded. Use the "file" command.

 

解决方法:

    原因在编译时没有加上 -g 参数,因此加上就可以了。

 

 g++ test.cpp -g -o test_1

 

wKiom1NGos-R3dhrAATpixJC9No947.jpg