Hi,
I'm using Fedora 2. When I compile libpdf++ (C++ library for pdf) for my learning and got these errors
Code:
c++ -DPACKAGE=\"libpdfdoc\" -DVERSION=\"0.0.3\" -DHAVE_DLFCN_H=1 -DHAVE_LIBZ=1 -DHAVE_JPEG=1 -I. -I. -I../../src -I/usr/include/boost -DNDEBUG -Wall -O2 -c Array.cc -fPIC -DPIC -o .libs/Array.lo
In file included from Array.cc:27:
Array.hh:74: error: ISO C++ forbids declaration of `indirect_iterator_generator
' with no type
Array.hh:74: error: template-id `
indirect_iterator_generator<__gnu_cxx::__normal_iterator<const
boost::shared_ptr<pdf::core::CObject>*,
std::vector<boost::shared_ptr<pdf::core::CObject>,
std::allocator<boost::shared_ptr<pdf::core::CObject> > > >,
pdf::core::CObject, const pdf::core::CObject&,
std::random_access_iterator_tag, const pdf::core::CObject*>' used as a
declarator
Array.hh:74: error: syntax error before `::' token
Array.hh:77: error: ISO C++ forbids declaration of `iterator' with no type
Array.hh:77: error: syntax error before `::' token
Array.hh:78: error: `int' is not an aggregate type
Array.hh:78: error: ISO C++ forbids declaration of `reference' with no type
Array.hh:78: error: syntax error before `;' token
Array.hh:79: error: `int' is not an aggregate type
Array.hh:79: error: ISO C++ forbids declaration of `reference' with no type
Array.hh:79: error: syntax error before `;' token
Array.cc: In copy constructor `pdf::core::CArray::CArray(const
pdf::core::CArray&)':
I did my best (in Google) but found nothing (with searched word "ISO C++ forbids declaration of")
Any ideal