MAGICKCORE-CONFIG(1) General Commands Manual MAGICKCORE-CONFIG(1)

# [NAME](#NAME)

`MagickCore-config` — get information about the installed version of ImageMagick

# [SYNOPSIS](#SYNOPSIS)

`MagickCore-config` \[`--cflags`] \[`--cppflags`] \[`--exec-prefix`] \[`--ldflags`] \[`--libs`] \[`--prefix`] \[`--version`]

# [DESCRIPTION](#DESCRIPTION)

The `MagickCore-config` utility prints the compiler and linker flags required to compile and link programs that use the `ImageMagick Core` Application Programmer Interface.

The following options are available:

[`--cppflags`](#cppflags), `--cflags`, `--cxxflags`

Print the compiler flags that are needed to find the [ImageMagick(1)](/man/enterprise-packages/imagemagick-6/ImageMagick.1) C include files and defines to ensure that the ImageMagick data structures match between your program and the installed libraries.

[`--prefix`](#prefix), `--exec-prefix`

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

[`--ldflags`](#ldflags), `--libs`

Print the linker flags that are needed to link with the [ImageMagick(1)](/man/enterprise-packages/imagemagick-6/ImageMagick.1) library.

[`--version`](#version)

Print the version of the [ImageMagick(1)](/man/enterprise-packages/imagemagick-6/ImageMagick.1) distribution to standard output.

[`--coder-path`](#coder-path)

Print the path where the [ImageMagick(1)](/man/enterprise-packages/imagemagick-6/ImageMagick.1) coder modules are installed.

[`--filter-path`](#filter-path)

Print the path where the [ImageMagick(1)](/man/enterprise-packages/imagemagick-6/ImageMagick.1) filter modules are installed.

# [EXAMPLES](#EXAMPLES)

To print the version of the installed distribution of `ImageMagick` use:

`MagickCore-config --version`

To compile a program that calls the [ImageMagick(1)](/man/enterprise-packages/imagemagick-6/ImageMagick.1) Application Programmer Interface, use:

``cc `MagickCore-config --cppflags --ldflags` program.c``

# [SEE ALSO](#SEE_ALSO)

[ImageMagick(1)](/man/enterprise-packages/imagemagick-6/ImageMagick.1)

# [LICENSE](#LICENSE)

`ImageMagick` is licensed with a derived Apache license 2.0. See https://imagemagick.org/license/ for more details.

# [AUTHORS](#AUTHORS)

The `ImageMagick` suite and this manual page where written by Cristy, ImageMagick Studio LLC &lt;development-team@imagemagick.org&gt;.

July 13, 2015 Linux 4.19.0-gvisor

---

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