Re: Problem with compiling



canbaby wrote:

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:
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
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list


here wrong:

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

Also,
CFLAGS=`pkg-config --cflags gtk+-20`

back-tick (the key before keysym 1), not single-quote.

-Shakti



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