atkmm: atkmm Reference Manual

atkmm 2.36.4

atkmm Reference Manual

# Description

atkmm is the official C++ interface for the ATK accessibility toolkit library.

# Basic usage

Include the atkmm header:

#include <atkmm.h>

This includes every header installed by atkmm, so can slow down compilation, but suffices for this simple example. Assuming that your program source file is `program.cc`, compile it with:

g++ program.cc -o program `pkg-config --cflags --libs atkmm-2.36`

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:`

atkmm_dep = dependency('atkmm-2.36')
program_name = 'program'
cpp_sources = [ 'program.cc' ]
executable(program_name,
cpp_sources,
dependencies: [ atkmm_dep ]
)

Alternatively, if using autoconf, use the following in `configure.ac:`

PKG_CHECK_MODULES([ATKMM], [atkmm-2.36])

Then use the generated `ATKMM_CFLAGS` and `ATKMM_LIBS` variables in the project `Makefile.am` files. For example:

program_CPPFLAGS = $(ATKMM_CFLAGS)
program_LDADD = $(ATKMM_LIBS)