How to print out the content in vector with gdb on Mac OS X

后端 未结 2 1255
故里飘歌
故里飘歌 2021-01-21 05:48

I\'m trying to use C++11 feature on Mac OS X. I downloaded g++ 4.8.1 with port.

This is the test code.

class A
{
    int x;
public:
    A() {}
    ~A()         


        
2条回答
  •  一向
    一向 (楼主)
    2021-01-21 06:12

    Use python printers for GDB, your printers seem like deprecated stuff:

    enter image description here

提交回复
热议问题