Re: Doubts about gtk 2.0
- From: Owen Taylor <otaylor redhat com>
- To: Paulo Ricardo Batista Mesquita <pmesquita atech br>
- Cc: "'gtk-list gnome org'" <gtk-list gnome org>
- Subject: Re: Doubts about gtk 2.0
- Date: 15 Jul 2003 09:51:14 -0400
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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]