Re: Problem with compiling

Petr Hracek wrote:

Hi all,

I tried do some examples from gtk-demo
and my very simple program were:

#include <gtk/gtk.h>

int main (int argc, char argv[])
   return 0;

But when I want compile this source code compiler show me that he can't find gtk/gtk.h

Makefile is:
CFLAGS='pkg-config --cflags gtk+-20'
LIBS='pkg-config --lib gtk+-2.0'

hello: hello.o
   $(CC) -o hello $(LIBS) hello.o

hello.o: hello.c
   $(CC) $(CFLAGS) -c hello.c

Can you help me anybody with this problem?
I think that I have not path to gtk.
What I have to do?

Bets regards
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org

here wrong:

CFLAGS='pkg-config --cflags gtk+-20'            spell wrong ===> gtk+-2.0


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