[LLVMbugs] [Bug 7379] New: ImageMagick++ headers cause compilation error
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Tue Jun 15 02:15:57 PDT 2010
http://llvm.org/bugs/show_bug.cgi?id=7379
Summary: ImageMagick++ headers cause compilation error
Product: clang
Version: trunk
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: C++
AssignedTo: unassignedclangbugs at nondot.org
ReportedBy: jpakkane at gmail.com
CC: llvmbugs at cs.uiuc.edu, dgregor at apple.com
On Fedora 13 this program:
#include<iostream>
#include<Magick++.h>
using namespace Magick;
int main(int argc, char **argv) {
std::cout << "It compiled." << std::endl;
return 0;
}
Gives this error when compiled with clang++:
In file included from imbug.cpp:2:
In file included from /usr/include/ImageMagick/Magick++.h:12:
/usr/include/ImageMagick/Magick++/STL.h:2220:18: error: no viable overloaded
'='
quantizeInfo = dither_ ? MagickCore::MagickTrue : MagickCore::MagickFalse;
~~~~~~~~~~~~ ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from imbug.cpp:2:
In file included from /usr/include/ImageMagick/Magick++.h:9:
In file included from /usr/include/ImageMagick/Magick++/Include.h:47:
In file included from /usr/include/ImageMagick/magick/MagickCore.h:169:
In file included from /usr/include/ImageMagick/magick/deprecate.h:34:
/usr/include/ImageMagick/magick/quantize.h:35:16: note: candidate function (the
implicit copy assignment operator) not viable: no known conversion from
'MagickCore::MagickBooleanType' to 'MagickCore::_QuantizeInfo const' for 1st
argument
typedef struct _QuantizeInfo
^
1 error generated.
G++ compiles it without problems.
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list