Re: Doubts about gtk 2.0

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

 



On Tue, 2003-07-15 at 09:28, Paulo Ricardo Batista Mesquita wrote:
> Hi dears,
> 
> I am a newbie using GTK+.
> 
> I installed the sources, and now I am trying to write a simple application.
> I included the line
> 
> #include <gtk\gtk.h>
> 
> and I tried to compile this using 
> 
> gcc -g -s testeGTK.c -o testeGTK 'pkg-config --cflags --libs gtk+-2.0'.

http://developer.gnome.org/doc/API/2.0/gtk/gtk-compiling.html

The simplest way to compile a program is to use the "backticks" feature
of the shell. If you enclose a command in backticks (not single quotes),
then its output will be substituted into the command line before
execution. So to compile a GTK+ Hello, World, you would type the
following:

$ cc `pkg-config --cflags --libs gtk+-2.0` hello.c -o 

Note: "not single quotes"

Regards,
						Owen




[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux