代码: 全选
root@jia-laptop:~# cd /root/桌面/player
root@jia-laptop:~/桌面/player# make
gcc main.c -g -c `pkg-config --cflags gtk+-2.0`
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
main.c:1:20: 错误: gtk/gtk.h:没有该文件或目录
在包含自 main.c:3 的文件中:
eggtrayicon.h:24:25: 错误: gtk/gtkplug.h:没有该文件或目录
eggtrayicon.h:25:22: 错误: gdk/gdkx.h:没有该文件或目录
In file included from main.c:3:
eggtrayicon.h:36: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
eggtrayicon.h:41: 错误: expected specifier-qualifier-list before ‘GtkPlug’
eggtrayicon.h:56: 错误: expected specifier-qualifier-list before ‘GtkPlugClass’
eggtrayicon.h:59: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘egg_tray_icon_get_type’
eggtrayicon.h:61: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
eggtrayicon.h:63: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘egg_tray_icon_get_orientation’
In file included from /usr/include/stdlib.h:33,
from main.c:4:
/usr/lib/gcc/i486-linux-gnu/4.2.4/include/stddef.h:326: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘typedef’
In file included from main.c:4:
/usr/include/stdlib.h:782: 错误: expected ‘)’ before ‘*’ token
/usr/include/stdlib.h:786: 错误: expected declaration specifiers or ‘...’ before ‘wchar_t’
/usr/include/stdlib.h:790: 错误: expected ‘)’ before ‘*’ token
/usr/include/stdlib.h:794: 错误: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
main.c:6:17: 错误: xine.h:没有该文件或目录
In file included from main.c:7:
main.h:4: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
main.h:5: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
main.h:7: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
main.h:10: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from main.c:8:
play.h:10: 错误: expected ‘)’ before ‘*’ token
play.h:12: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
play.h:13: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
play.h:14: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
play.h:15: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from main.c:9:
picture.h:7: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘picture’
In file included from main.c:10:
window.h:4: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
window.h:16: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
window.h:18: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
window.h:22: 错误: ‘PATH_MAX’未声明 (不在函数内)
window.h:26: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
In file included from main.c:11:
player_icon.h:7: 错误: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘player_icon’
main.c: 在函数‘quit’中:
main.c:24: 错误: ‘stream’未声明 (在此函数内第一次使用)
main.c:24: 错误: (即使在一个函数内多次出现,每个未声明的标识符在其
main.c:24: 错误: 所在的函数内也只报告一次。)
main.c:37: 警告: 内建函数 ‘sprintf’ 不兼容的隐式声明
main.c:44: 警告: 从不兼容的指针类型赋值
main.c: 在函数‘window_show’中:
main.c:50: 错误: ‘window’未声明 (在此函数内第一次使用)
main.c: 在文件层:
main.c:52: 错误: expected ‘)’ before ‘*’ token
main.c: 在函数‘creat_menu’中:
main.c:60: 错误: ‘GtkMenuItem’未声明 (在此函数内第一次使用)
main.c:60: 错误: ‘item’未声明 (在此函数内第一次使用)
main.c:61: 错误: ‘menu’未声明 (在此函数内第一次使用)
main.c:67: 错误: ‘GTK_STOCK_MEDIA_PREVIOUS’未声明 (在此函数内第一次使用)
main.c:72: 错误: ‘item_pause’未声明 (在此函数内第一次使用)
main.c:72: 错误: ‘GTK_STOCK_MEDIA_PAUSE’未声明 (在此函数内第一次使用)
main.c:76: 错误: ‘item_play’未声明 (在此函数内第一次使用)
main.c:76: 错误: ‘GTK_STOCK_MEDIA_PLAY’未声明 (在此函数内第一次使用)
main.c:80: 错误: ‘GTK_STOCK_MEDIA_NEXT’未声明 (在此函数内第一次使用)
main.c:85: 错误: ‘GTK_STOCK_QUIT’未声明 (在此函数内第一次使用)
main.c: 在函数‘main’中:
main.c:92: 错误: ‘GtkWidget’未声明 (在此函数内第一次使用)
main.c:93: 错误: ‘image’未声明 (在此函数内第一次使用)
main.c:94: 错误: ‘eventbox’未声明 (在此函数内第一次使用)
main.c:95: 错误: ‘GdkPixbuf’未声明 (在此函数内第一次使用)
main.c:95: 错误: ‘tray_icon’未声明 (在此函数内第一次使用)
main.c:97: 错误: ‘icon’未声明 (在此函数内第一次使用)
main.c:98: 错误: ‘window_icon’未声明 (在此函数内第一次使用)
main.c:98: 错误: ‘player_icon’未声明 (在此函数内第一次使用)
main.c:98: 错误: ‘FALSE’未声明 (在此函数内第一次使用)
main.c:99: 错误: ‘picture’未声明 (在此函数内第一次使用)
main.c:104: 错误: ‘show_menu’未声明 (在此函数内第一次使用)
main.c:107: 错误: ‘tips’未声明 (在此函数内第一次使用)
main.c:111: 错误: ‘GtkFunction’未声明 (在此函数内第一次使用)
main.c:111: 错误: expected ‘)’ before ‘auto_play’
make: *** [main.o] 错误 1
root@jia-laptop:~/桌面/player#