Hello
I am trying to install GTK on my mac. When i try to compile something i get this error. So he cant find the package.
I compiled with this and with the path of the gtk+-2.0 but both give the same error and the file is present.
gcc -Wall -ansi -pedantic oef1.c -o test `pkg-config --cflags --libs 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
oef1.c:1:21: error: gtk/gtk.h: No such file or directory
oef1.c: In function ‘main’:
oef1.c:5: error: ‘GtkWidget’ undeclared (first use in this function)
oef1.c:5: error: (Each undeclared identifier is reported only once
oef1.c:5: error: for each function it appears in.)
oef1.c:5: error: ‘window’ undeclared (first use in this function)
oef1.c:7: warning: implicit declaration of function ‘gtk_init’
oef1.c:8: warning: implicit declaration of function ‘gtk_window_new’
oef1.c:8: error: ‘GTK_WINDOW’ undeclared (first use in this function)
oef1.c:8: error: ‘TOPLEVEL’ undeclared (first use in this function)
oef1.c:9: warning: implicit declaration of function ‘gtk_widget_show’
oef1.c:11: warning: implicit declaration of function ‘gtk_main’