I wanted to use Magick++ to develop my final project for my CmpSci class. However, we are not provided any help beyond what is covered directly in the course. Right now I am still working on compiling my first program.
I have Magick++ installed as far as I can tell. So I created a .cpp file and have been stuck on compiling it. I'm trying to follow the tutorial to the best of my knowledge, but it assumes that you are relatively familiar with executing terminal commands, which I am not.
I know I can compile a basic program with:
Code: Select all
g++ main.cpp -o Demo.exe
So I tried including the Magick++ library as follows:
Code: Select all
g++ main.cpp -o Demo.exe `Magick++-config --cppflags --cxxflags --ldflags --libs`
Code: Select all
/usr/bin/ld: cannot find -lMagick++6-Q16
/usr/bin/ld: cannot find -lMagick++6-Q16
/usr/bin/ld: cannot find -lMagick++6-Q16
collect2: ld returned 1 exit status
Thanks!