Using ImageMagick with Dev-C++ on Windows
Posted: 2011-04-18T18:48:35-07:00
I'm trying to write a C++ program that uses ImageMagick and I can't get it to link without errors. I am on Windows 7 and using the Dev-C++ IDE.
I have a linker error for every reference to a Magick++ function, like so:
[Linker error] undefined reference to `Magick::Image::Image()'
[Linker error] undefined reference to `Magick::Image::read(std::string const&)'
etc...
I don't need to change anything in Magick++, just use it. So I downloaded it already compiled, Windows 32 bit, 8 bit precision, DLL, and installed it.
I've tried everything, adding links to all four of the libraries (after converting them to .a from .lib) in my linker parameters in project options, added both the ImageMagick Library and Include directories to project options, thrown every single DLL in the ImageMagick folder (like 20 of them) into my project folder, etc...
Nothing has ever made a difference. And yes I have Magick::InitializeMagick(""); in my main.
Your .dsp project files in the demo folder can't be converted and read by Dev-C++ (4.9.9.2), in fact I couldn't even open them in VS10 after I broke down and installed it, they couldn't be converted.
Help?
I have a linker error for every reference to a Magick++ function, like so:
[Linker error] undefined reference to `Magick::Image::Image()'
[Linker error] undefined reference to `Magick::Image::read(std::string const&)'
etc...
I don't need to change anything in Magick++, just use it. So I downloaded it already compiled, Windows 32 bit, 8 bit precision, DLL, and installed it.
I've tried everything, adding links to all four of the libraries (after converting them to .a from .lib) in my linker parameters in project options, added both the ImageMagick Library and Include directories to project options, thrown every single DLL in the ImageMagick folder (like 20 of them) into my project folder, etc...
Nothing has ever made a difference. And yes I have Magick::InitializeMagick(""); in my main.
Your .dsp project files in the demo folder can't be converted and read by Dev-C++ (4.9.9.2), in fact I couldn't even open them in VS10 after I broke down and installed it, they couldn't be converted.
Help?