[gtk-osx-users] hello world in gtk



hi

I am begging at this and I am trying to compile the sample from below :
https://developer.gnome.org/gtk-tutorial/stable/c39.html#SEC-HELLOWORLD

I run jhbuild shell

when I compile :
gcc base.c -o base `pkg-config --cflags --libs gtk+-2.0`

 I get the message:

i686-apple-darwin10-gcc-4.2.1: pkg-config --cflags --libs gtk+-2.0: No such file or directory
/opt/code/gtk/base.c:1:31: error: /ericomtx/gtk/gtk.h: No such file or directory
/opt/code/gtk/base.c: In function ‘main’:
/opt/code/gtk/base.c:7: error: ‘GtkWidget’ undeclared (first use in this function)
/opt/code/gtk/base.c:7: error: (Each undeclared identifier is reported only once
/opt/code/gtk/base.c:7: error: for each function it appears in.)


how can set the gtk path so gcc can use its libs ?

I am really sorry for the beginner question

Regards
Érico
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]