Jump to content

GTK+ By Example/Environment/Command Line Compilation

From Wikibooks, open books for an open world

Here is a small example using GCC without compiler flags to get the page started.

gcc -o<file to output> <input> `pkg-config --cflags --libs gtk+-2.0`

  • notice the `` characters, they are telling the command line to process this first and then use then place the output here.

Compiler Flags Specific to GTK+ and Glib

[edit | edit source]

--G_DISABLE_DEPRECATED

Build Scripts

[edit | edit source]

We probably should use an inter-book link for this.

  • Automake