一个奇怪的问题!cannot open display
我在xwin里面编好的程序,运行正常,
可是我到text端运行时却出象错误
GTK-WARRING: cannot open display!
各位高手帮我分析一下时什么原因,附上包含的头文件:
#include <gtk/gtk.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netinet/in.h>
#include <fcntl.h>
#include <ftw.h>
#include <string.h>
#include <stdio.h>
#include <unistd.h>
#include <sys/wait.h>
非常感谢!!!