Problems with mingw installation

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
cdaragorn

Problems with mingw installation

Post by cdaragorn »

I'm using the mingw version 6.5.7, and I'm getting a ton of linker errors I don't understand:

Code: Select all

C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Color.o)||In function `ZN6Magick8ColorHSLC2Eddd':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Color.cpp|306|undefined reference to `ConvertHSLToRGB'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Color.o)||In function `ZN6Magick8ColorHSLC1Eddd':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Color.cpp|306|undefined reference to `ConvertHSLToRGB'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Color.o)||In function `ZN6Magick8ColorHSL3hueEd':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Magick++\Color.h|333|undefined reference to `ConvertRGBToHSL'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Color.o)||In function `ZN6Magick8ColorHSL3hueEd':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Color.cpp|350|undefined reference to `ConvertHSLToRGB'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Color.o)||In function `ZNK6Magick8ColorHSL3hueEv':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Magick++\Color.h|333|undefined reference to `ConvertRGBToHSL'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Color.o)||In function `ZN6Magick8ColorHSL10saturationEd':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Magick++\Color.h|333|undefined reference to `ConvertRGBToHSL'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Color.o)||In function `ZN6Magick8ColorHSL10saturationEd':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Color.cpp|388|undefined reference to `ConvertHSLToRGB'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Color.o)||In function `ZNK6Magick8ColorHSL10saturationEv':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Magick++\Color.h|333|undefined reference to `ConvertRGBToHSL'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Color.o)||In function `ZN6Magick8ColorHSL10luminosityEd':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Magick++\Color.h|333|undefined reference to `ConvertRGBToHSL'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Color.o)||In function `ZN6Magick8ColorHSL10luminosityEd':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Color.cpp|426|undefined reference to `ConvertHSLToRGB'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Color.o)||In function `ZNK6Magick8ColorHSL10luminosityEv':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Magick++\Color.h|333|undefined reference to `ConvertRGBToHSL'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Color.o)||In function `ZN6Magick5ColoraSERKSs':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Color.cpp|198|undefined reference to `GetExceptionInfo'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Color.o)||In function `ZN6Magick5ColoraSERKSs':|
c:\MinGW\bin\..\lib\gcc\mingw32\3.4.5\..\..\..\..\include\c++\3.4.5\bits\basic_string.h|1456|undefined reference to `QueryColorDatabase'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Color.o)||In function `ZN6Magick5ColoraSERKSs':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Color.cpp|216|undefined reference to `DestroyExceptionInfo'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Color.cpp|216|undefined reference to `DestroyExceptionInfo'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Color.o)||In function `ZNK6Magick5ColorcvSsEv':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Color.cpp|246|undefined reference to `GetColorTuple'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Image.o)||In function `ZN6Magick5Image12channelDepthEN10MagickCore11ChannelTypeE':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|540|undefined reference to `GetExceptionInfo'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|541|undefined reference to `GetImageChannelDepth'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|544|undefined reference to `DestroyExceptionInfo'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Image.o)||In function `ZN6Magick5Image15quantumOperatorEN10MagickCore11ChannelTypeENS1_22MagickEvaluateOperatorEd':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|1488|undefined reference to `GetExceptionInfo'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|1489|undefined reference to `EvaluateImageChannel'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|1491|undefined reference to `DestroyExceptionInfo'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Image.o)||In function `ZN6Magick5Image15quantumOperatorEiijjN10MagickCore11ChannelTypeENS1_22MagickEvaluateOperatorEd':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|1502|undefined reference to `GetExceptionInfo'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|1509|undefined reference to `CropImage'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|1510|undefined reference to `EvaluateImageChannel'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|1512|undefined reference to `CompositeImage'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|1514|undefined reference to `DestroyImageList'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|1516|undefined reference to `DestroyExceptionInfo'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Image.o)||In function `ZNK6Magick5Image11boundingBoxEv':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|2431|undefined reference to `GetExceptionInfo'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|2432|undefined reference to `GetImageBoundingBox'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|2434|undefined reference to `DestroyExceptionInfo'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Image.o)||In function `ZN6Magick5Image14cacheThresholdEj':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|2455|undefined reference to `SetMagickResourceLimit'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Image.o)||In function `ZNK6Magick5Image11exifProfileEv':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|2914|undefined reference to `GetImageProfile'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|2917|undefined reference to `GetStringInfoLength'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|2917|undefined reference to `GetStringInfoDatum'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Image.o)||In function `ZNK6Magick5Image8fileSizeEv':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|2940|undefined reference to `GetBlobSize'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Image.o)||In function `ZNK6Magick5Image15iccColorProfileEv':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|3097|undefined reference to `GetImageProfile'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|3100|undefined reference to `GetStringInfoLength'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|3100|undefined reference to `GetStringInfoDatum'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Image.o)||In function `ZNK6Magick5Image11iptcProfileEv':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|3128|undefined reference to `GetImageProfile'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|3131|undefined reference to `GetStringInfoLength'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|3131|undefined reference to `GetStringInfoDatum'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Image.o)||In function `ZNK6Magick5Image12modulusDepthEv':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|3267|undefined reference to `GetExceptionInfo'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|3268|undefined reference to `GetImageDepth'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|3270|undefined reference to `DestroyExceptionInfo'|
C:\dev\ImageMagick-6.5.7\lib\libMagick++.a(Image.o)||In function `ZNK6Magick5Image10statisticsEPNS0_16_ImageStatisticsE':|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|3598|undefined reference to `GetExceptionInfo'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|3599|undefined reference to `GetImageChannelRange'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|3603|undefined reference to `GetImageChannelMean'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|3605|undefined reference to `GetImageChannelKurtosis'|
C:\msys\1.0\home\cristy\ImageMagick-6.5.7-9\Magick++\lib\Image.cpp|3607|undefined reference to `GetImageChannelRange'|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
I know this code works because it compiles and runs beautifully under visual studio using the windows binaries for Imagemagick, but I really want to get the mingw version working because I'm having too many other problems with the VS compiler and I just plain hate it.

I'm especially confused as to why the errors include what looks like someone's personal cygwin directory (C:\msys\1.0\home\cristy). Anyone have any ideas what I might be missing? Thanks in advance!
Post Reply