From: Matthias Clasen Date: Wed, 5 Oct 2005 20:45:50 +0000 (+0000) Subject: Document gmodule-no-export-2.0 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=a8b39bf42b3ede3d961b87ff44ad07dd12955ac6;p=dana%2Fcg-glib.git Document gmodule-no-export-2.0 2005-10-05 Matthias Clasen * glib/compiling.sgml: Document gmodule-no-export-2.0 --- diff --git a/docs/reference/ChangeLog b/docs/reference/ChangeLog index c9db0354..a0573853 100644 --- a/docs/reference/ChangeLog +++ b/docs/reference/ChangeLog @@ -1,3 +1,7 @@ +2005-10-05 Matthias Clasen + + * glib/compiling.sgml: Document gmodule-no-export-2.0 + 2005-10-01 Davyd Madeley * glib/tmpl/string_utils.sgml: Minor documentation improvements for diff --git a/docs/reference/glib/compiling.sgml b/docs/reference/glib/compiling.sgml index 38a66619..2bd1a5f7 100644 --- a/docs/reference/glib/compiling.sgml +++ b/docs/reference/glib/compiling.sgml @@ -32,16 +32,25 @@ $ pkg-config --libs glib-2.0 -If your application uses modules, threads or GObject +If your application uses threads or GObject features, it must be compiled and linked with the options returned by the following pkg-config invocations: -$ pkg-config --cflags --libs gmodule-2.0 $ pkg-config --cflags --libs gthread-2.0 $ pkg-config --cflags --libs gobject-2.0 +If your application uses modules, it must be compiled and linked with the options +returned by one of the following pkg-config invocations: + +$ pkg-config --cflags --libs gmodule-no-export-2.0 +$ pkg-config --cflags --libs gmodule-2.0 + +The difference between the two is that gmodule-2.0 adds +to the linker flags, which is often not needed. + + 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