From: Michal H. <ms...@gm...> - 2009-09-10 11:18:58
|
parse_object is missing its target for binary. This resulted in an implicit rule being used and so the compilation failed because our CXXFLAGS are not used (include path is missing etc..). parse_object.cc also needs a minor compilation fix. g++ doesn't like <::Type> construct: parse_object.cc:109: error: '<::' cannot begin a template-argument list parse_object.cc:109: note: '<:' is an alternate spelling for '['. Insert whitespace between '<' and '::' Index: pdfedit-patches/src/tools/Makefile =================================================================== --- pdfedit-patches.orig/src/tools/Makefile 2009-09-08 23:43:01.000000000 +0200 +++ pdfedit-patches/src/tools/Makefile 2009-09-08 23:45:04.000000000 +0200 @@ -49,6 +49,8 @@ pdf_object_comparer: pdf_object_comparer pdf_to_text: pdf_to_text.o $(LINK) $(LDFLAGS) -o pdf_to_text pdf_to_text.o $(TOOLS_LIBS) +parse_object: parse_object.o + $(LINK) $(LDFLAGS) -o parse_object parse_object.o $(TOOLS_LIBS) clean: -rm $(UTILS_OBJS) || true rm *.o $(TARGET) Index: pdfedit-patches/src/tools/parse_object.cc =================================================================== --- pdfedit-patches.orig/src/tools/parse_object.cc 2009-09-08 23:43:01.000000000 +0200 +++ pdfedit-patches/src/tools/parse_object.cc 2009-09-08 23:45:38.000000000 +0200 @@ -86,7 +86,7 @@ main(int argc, char ** argv) ffile.read (buf, size); ffile.close(); - boost::shared_ptr<::Object> obj(XPdfObjectFactory::getInstance(), xpdf::object_deleter()); + boost::shared_ptr< ::Object> obj(XPdfObjectFactory::getInstance(), xpdf::object_deleter()); ::MemStream* stream = new ::MemStream (buf, 0, size, obj.get(), true); // this is really NASTY @@ -106,7 +106,7 @@ main(int argc, char ** argv) //cout << obj << endl; if (obj->isStream()) { - boost::shared_ptr<::Object> _obj(XPdfObjectFactory::getInstance(), xpdf::object_deleter()); + boost::shared_ptr< ::Object> _obj(XPdfObjectFactory::getInstance(), xpdf::object_deleter()); Stream* _stream = obj->getStream(); ::Lexer* _lexer = new ::Lexer (NULL, _stream); ::Parser _parser (NULL, _lexer, gFalse); -- Michal Hocko |