Code: Select all
> Magick++-config --cxxflags --cppflags --ldflags --libs
-g -O2 -Wall -W -pthread
-I/usr/local/include/ImageMagick
-L/usr/local/lib
-L/usr/local/lib -lMagick++ -lMagickWand -lMagickCore -lm -lgomp -lpthread
Code: Select all
#include <Magick++.h>
using namespace Magick;
int main(int argc, char* argv[]) {
return 0;
}
Code: Select all
> c++ `Magick++-config --cxxflags --cppflags --ldflags --libs` -o example example.cpp
example.cpp:1:22: error: Magick++.h: No such file or directory
example.cpp:3: error: âMagickâ is not a namespace-name
example.cpp:3: error: expected namespace-name before â;â token
example.cpp:5: warning: unused parameter âargcâ
example.cpp:5: warning: unused parameter âargvâ