Hi,

On Thu, May 20, 2010 at 01:13:23AM +1200, David G. Koontz wrote:
> 
> I've compiled pdfedit-4.4.1 earlier today after having trouble with 0.4.5
> and it runs.  I did manage to hang it poking around in a pdf file, I have
> better luck on Linux.  Still, much more robust than 0.4.3.
> 
> On Mac OS X 10.5.7, using boost 1.0.42 compiled under macports 1.8.2,
> Apple's gcc-4.0.1 from XCode.  Straight forward 'configure', simply 'make'.
> 
> 
> Complains on include pdfedit-0.4.5/src/kernel/cobjectsimple.h:
> 
> g++ -c  -O2   -fmessage-length=0 -D_FORTIFY_SOURCE=2 -fno-strict-aliasing
> -fexceptions    -pipe -posix -ansi -std=c++98 -pedantic -I.
> -I/Users/diogratia/Desktop/pdfedit-0.4.5/src
> -I/Users/diogratia/Desktop/pdfedit-0.4.5/src/xpdf/  -I/opt/local/include
> -I/opt/local/include/freetype2 -I/opt/local/include  -I/usr/include -o
> cpagecontents.o cpagecontents.cc
> 
> /Users/diogratia/Desktop/pdfedit-0.4.5/src/kernel/cobjectsimple.h: In copy
> constructor 'pdfobjects::CObjectSimple<pInt>::CObjectSimple(const
> pdfobjects::CObjectSimple<pInt>&)':
> /opt/local/include/boost/noncopyable.hpp:27: error:
> 'boost::noncopyable_::noncopyable::noncopyable(const
> boost::noncopyable_::noncopyable&)' is private
> /Users/diogratia/Desktop/pdfedit-0.4.5/src/kernel/cobjectsimple.h:104:
> error: within this context
> cpagecontents.cc: In member function 'void
> pdfobjects::CPageContents::addInlineImage(const std::vector<char,
> std::allocator<char> >&, const libs::Point&, const libs::Point&)':
> cpagecontents.cc:543: warning: synthesized method
> 'pdfobjects::CObjectSimple<pInt>::CObjectSimple(const
> pdfobjects::CObjectSimple<pInt>&)' first required here
> 
> /Users/diogratia/Desktop/pdfedit-0.4.5/src/kernel/cobjectsimple.h: In copy
> constructor 'pdfobjects::CObjectSimple<pName>::CObjectSimple(const
> pdfobjects::CObjectSimple<pName>&)':
> /opt/local/include/boost/noncopyable.hpp:27: error:
> 'boost::noncopyable_::noncopyable::noncopyable(const
> boost::noncopyable_::noncopyable&)' is private
> /Users/diogratia/Desktop/pdfedit-0.4.5/src/kernel/cobjectsimple.h:104:
> error: within this context
> cpagecontents.cc: In member function 'void
> pdfobjects::CPageContents::addInlineImage(const std::vector<char,
> std::allocator<char> >&, const libs::Point&, const libs::Point&)':
> cpagecontents.cc:545: warning: synthesized method
> 'pdfobjects::CObjectSimple<pName>::CObjectSimple(const
> pdfobjects::CObjectSimple<pName>&)' first required here

This is really weird. The code is CName("RGB") so there sis not
CName(CName) in there. It looks like a compiler bug. Does the attached
patch helps?

-- 
Michal Hocko
Index: pdfedit-patches/src/kernel/cpagecontents.cc
===================================================================
--- pdfedit-patches.orig/src/kernel/cpagecontents.cc	2010-05-19 15:52:24.000000000 +0200
+++ pdfedit-patches/src/kernel/cpagecontents.cc	2010-05-19 15:54:18.000000000 +0200
@@ -542,7 +542,7 @@ CPageContents::addInlineImage (const CSt
 	CDict image_dict;
 	image_dict.addProperty ("W", CInt (image_size.x));
 	image_dict.addProperty ("H", CInt (image_size.y));
-	image_dict.addProperty ("CS", CName ("RGB"));
+	image_dict.addProperty ("CS", CName((const char *)"RGB"));
 	image_dict.addProperty ("BPC", CInt (8));
 	CInlineImage img (image_dict, what);
 	shared_ptr<CInlineImage> inline_image (new CInlineImage (image_dict, what));
------------------------------------------------------------------------------

_______________________________________________
Pdfedit-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pdfedit-support

Reply via email to