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

# [NAME](#NAME)

Magick-config - get information about the installed version of ImageMagick

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#DESCRIPTION)

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

# [EXAMPLES](#EXAMPLES)

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

```


  Magick-config --version
```

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

```


  cc `Magick-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 **ImageMagick** C include files and defines to ensure that the ImageMagick 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 **ImageMagick** library.

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

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

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

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

# [LICENSE](#LICENSE)

See https://imagemagick.org/license/.

# [AUTHORS](#AUTHORS)

Cristy, ImageMagick Studio LLC

2 May 2002 ImageMagick

---

Document: Magick-config(1) from imagemagick-6 6.9.13.60-r0 (Chainguard OS)
Source: https://github.com/ImageMagick/ImageMagick6.git
