attempt to dereference a generic a pointer(转)

Linux下的GDB环境中,用p   命令查看一个void   *型的变量的时候,提示为:  "attempt   to   dereference   a   generic   a   pointer     "

 

这里主要是指针类型不确定,强制转换指针类型后,可以使用转换后的指针类型打印元素。

posted @ 2017-08-11 18:03  鸭子船长  阅读(1867)  评论(0)    收藏  举报