Compiling in Ubuntu 12.04.1
Posted: 2013-03-07T01:21:17-07:00
First, I apologize for my inexperience in developing in both c++ and on the Linux operating system.
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:
So I tried including the Magick++ library as follows:
However when I run this code, I get:
Any help to get me on the right track would be greatly appreciated.
Thanks!
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!