Hi guys,
I have been recently  trying to use Magick++ in windows. So I first
installed MinGW, then devcpp-4.9.9.2_nomingw_setup.exe and lastly
ImageMagick-6.3.0-6-Q8-windows-dll.exe.
During the installation of ImageMagick I chose to install also the headers
and devel libs (in C:\Program Files\ImageMagick-6.3.0-Q8 )
Now I think I have a problem with the linker because I tried to insert the
following simple piece of code in dev-c++:
///////////////////////////////////////
#include <iostream>
#include <Magick++.h>
using namespace Magick;

using namespace std;

int main(int argc, char *argv[])
{
   Image image( "100x100", "white" );
   return EXIT_SUCCESS;
}
///////////////////////////////////////
I think I got the headers right, but not the libs, here's the output of gcc:
g++.exe -c main.cpp -o main.o -I"C:/Program
Files/ImageMagick-6.3.0-Q8/include"
-I"C:/Program Files/ImageMagick-6.3.0-Q8/include/magick"  -I"C:/Program
Files/ImageMagick-6.3.0-Q8/include/Magick++"  -I"C:/Program
Files/ImageMagick-6.3.0-Q8/include/wand"

g++.exe main.o  -o "Project1.exe" -L"C:/Program Files/ImageMagick-6.3.0-Q8/lib"
-L"C:/Program Files/ImageMagick-6.3.0-Q8" -L. "../Program Files/ImageMagick-
6.3.0-Q8/lib/CORE_RL_magick_.lib" "../Program
Files/ImageMagick-6.3.0-Q8/lib/CORE_RL_Magick++_.lib"
"../Program Files/ImageMagick-6.3.0-Q8/lib/CORE_RL_wand_.lib" "../Program
Files/ImageMagick-6.3.0-Q8/lib/X11.lib" -lCORE_RL_magick_
-lCORE_RL_Magick++_ -lCORE_RL_wand_

main.o(.text+0x131):main.cpp: undefined reference to
`Magick::Image::Image()'
main.o(.text+0x13c):main.cpp: undefined reference to
`Magick::Image::~Image()'
collect2: ld returned 1 exit status
mingw32-make: *** [Project1.exe] Error 1
Execution terminated

I also tried to use the function InitializeMagick(...) but I didn't get
through 'cause I had some problems at linking time there as well.
What am I doing wrong?
thanks for your time,
Giuseppe
_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to