Gtk 컴파일 문제입니다;;;

[color=#BF0000:192lc9zd]root@kim-desktop:/workspace# gcc test.c -o test ‘pkg-config --cflags --libs gtk±2.0’[/color:192lc9zd]

gcc: pkg-config --cflags --libs gtk±2.0: No such file or directory
test.c:1:21: error: gtk/gtk.h: No such file or directory
test.c: In function ‘main’:
test.c:5: error: ‘GtkWidget’ undeclared (first use in this function)
test.c:5: error: (Each undeclared identifier is reported only once
test.c:5: error: for each function it appears in.)
test.c:5: error: ‘window’ undeclared (first use in this function)
test.c:9: error: ‘GTK_WINDOW_TOPLEVEL’ undeclared (first use in this function)

이런 식으로 에러가 뜹니다;;

[color=#BF0000:192lc9zd]root@kim-desktop:/workspace# echo $PATH[/color:192lc9zd]
/usr/include/gtk-2.0/gtk:/usr/lib/gtk-2.0:/usr/local/arm/4.2.2-eabi/usr/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games

이렇게 PATH도 잡혀있는데 왜 에러가 날까요;;;

libgtk2.0-dev 패키지를 설치한 후에 다시 해보세요.

엔터키 쪽에 있는 홑따옴표(')가 아니라 Esc키 밑에 있는 역따옴표() 입니다. 'pkg-config --cflags --libs gtk+-2.0' 가 아니라 pkg-config --cflags --libs gtk±2.0` 입니다.