GraphicsMagick-Config(1) General Commands Manual GraphicsMagick-Config(1)

# [NAME](#NAME)

GraphicsMagick-config - get information about the installed version of GraphicsMagick

# [SYNOPSIS](#SYNOPSIS)

**GraphicsMagick-config** **\[--cflags]** **\[--cppflags]** **\[--exec-prefix]** **\[--ldflags]** **\[--libs]** **\[--prefix]** **\[--version]**

# [DESCRIPTION](#DESCRIPTION)

**GraphicsMagick-config** prints the compiler and linker flags required to compile and link programs that use the **GraphicsMagick** Application Programmer Interface.

# [EXAMPLES](#EXAMPLES)

To print the version of the installed distribution of **GraphicsMagick**, use:

```


  GraphicsMagick-config --version
```

To compile a program that calls the **GraphicsMagick** Application Programmer Interface, use:

```


  cc `GraphicsMagick-config --cflags --cppflags --ldflags --libs` program.c
```

# [OPTIONS](#OPTIONS)

[**--cflags**](#cflags)

Print the compiler flags that were used to compile **libMagick**.

[**--cppflags**](#cppflags)

Print the preprocessor flags that are needed to find the **GraphicsMagick** C include files and defines to ensure that the GraphicsMagick data structures match between your program and the installed libraries.

[**--exec-prefix**](#exec-prefix)

Print the directory under which target specific binaries and executables are installed.

[**--ldflags**](#ldflags)

Print the linker flags that are needed to link with the **GraphicsMagick** library.

[**--libs**](#libs)

Print the linker flags that are needed to link a program with **libGraphicsMagick**.

[**--version**](#version)

Print the version of the **GraphicsMagick** distribution to standard output.

# [COPYRIGHT](#COPYRIGHT)

Copyright (C) 2002 GraphicsMagick Group

Copyright (C) 2002 ImageMagick Studio

# [AUTHORS](#AUTHORS)

Bob Friesenhahn

4 December 2002 GraphicsMagick

---

Document: GraphicsMagick-config(1) from graphicsmagick 1.3.47-r1 (Chainguard OS)
Source: https://downloads.sourceforge.net/graphicsmagick/1.3.47/GraphicsMagick-1.3.47.tar.xz
