当我尝试使用 gdb 运行以下代码时,我有 c/gtk+ 应用程序和 GList 填充了三个元素:
if (g_list_length(mw->img_list) > 0)
printf(">0");
else
printf("<0");
我明白:
程序收到信号 SIGSEGV,分段错误。[切换到线程 0xb73c4700 (LWP 7936)] IA__g_list_length (list=0x6e6920) at glist.c:767 767 glist.c:没有这样的文件或目录。在 glist.c 中
它是什么?
谢谢你。