glibmm 2.82.0
|
glibmm is the official C++ interface for the popular cross-platform library Glib. It provides non-UI API that is not available in standard C++ and makes it possible for gtkmm to wrap GObject-based APIs. See also the Programming with gtkmm book for a tutorial on programming with gtkmm and glibmm.
giomm (part of the glibmm project) also contains:
Include the glibmm header, plus giomm if necessary:
(You may include individual headers, such as glibmm/ustring.h
instead.)
If your source file is program.cc
, you can compile it with:
If your version of g++ is not C++17-compliant by default, add the -std=c++17
option.
If you use Meson, include the following in meson.build:
Alternatively, if using autoconf, use the following in configure.ac:
Then use the generated GLIBMM_CFLAGS
and GLIBMM_LIBS
variables in the project Makefile.am files. For example: