Problem with compiling



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:
CC=gcc
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
Petr


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