Problem with STL annotateImage()
Posted: 2007-09-20T01:58:32-07:00
Hi all!
This simple code does not work:
My g++ compiler says:
This simple code does not work:
Code: Select all
for_each(imageList.begin(),imageList.end(),annotateImage("test", Geometry(10,10)));
Please help!line.cpp: In member function `void Line::RenderLine()':
/usr/local/include/Magick++/STL.h:118: error: `Magick::annotateImage::annotateImage(const Magick::annotateImage&)' is private
line.cpp:232: error: within this context
/usr/local/include/Magick++/STL.h:118: error: `Magick::annotateImage::annotateImage(const Magick::annotateImage&)' is private
line.cpp:232: error: within this context
line.cpp:232: error: initializing argument 3 of `_Function std::for_each(_InputIterator, _InputIterator, _Function) [with _InputIterator = std::_List_iterator<Magick::Image>, _Function = Magick::annotateImage]'
/usr/include/c++/3.4/bits/stl_algo.h: In function `_Function std::for_each(_InputIterator, _InputIterator, _Function) [with _InputIterator = std::_List_iterator<Magick::Image>, _Function = Magick::annotateImage]':
line.cpp:232: instantiated from here
/usr/local/include/Magick++/STL.h:118: error: `Magick::annotateImage::annotateImage(const Magick::annotateImage&)' is private
/usr/include/c++/3.4/bits/stl_algo.h:159: error: within this context