LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-19-2006, 03:07 AM   #1
caspervn
Member
 
Registered: Jul 2005
Location: Vietnam
Distribution: Fedora Core 2
Posts: 55

Rep: Reputation: 15
got errors when compile libpdf++


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
 
Old 04-19-2006, 07:57 PM   #2
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
What version of G++ do you have installed? Run this command:

$ c++ --version

It looks like libpdf++ doesn't use ANSI standard C++. I would contact the maintainer of libpdf++ and have them address these coding errors.

Peace...
 
Old 04-20-2006, 04:01 AM   #3
caspervn
Member
 
Registered: Jul 2005
Location: Vietnam
Distribution: Fedora Core 2
Posts: 55

Original Poster
Rep: Reputation: 15
This's mine

Quote:
$ c++ --version
c++ (GCC) 3.3.3 20040412 (Red Hat Linux 3.3.3-7)
Copyright (C) 2003 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
And

Quote:
It looks like libpdf++ doesn't use ANSI standard C++.
so how can I tell c++ to compile libpdf with not ANSI standard C++
 
Old 04-20-2006, 10:51 AM   #4
tomdkat
Member
 
Registered: May 2003
Location: S.F. Bay Area
Distribution: Ubuntu 9.04 AMD64
Posts: 595

Rep: Reputation: 30
Well, I don't believe you can, nor would you want to.

Contact the author and ask for some assistance. Send the compile output you're getting.

Good luck!

Peace...
 
Old 04-21-2006, 08:04 AM   #5
caspervn
Member
 
Registered: Jul 2005
Location: Vietnam
Distribution: Fedora Core 2
Posts: 55

Original Poster
Rep: Reputation: 15
tomdkat, thank you
May be I should give up compiling this library
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
compile errors. DrunkenDisciple Linux - Software 3 11-29-2005 12:11 AM
c++ compile errors using g++ ttumelty Programming 5 09-08-2005 01:58 PM
compile errors davidleroux1 Programming 4 05-10-2005 10:03 PM
C++ compile errors Palamides Programming 1 03-09-2005 06:28 AM
Compile Errors userini Linux - Software 6 07-16-2003 08:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:53 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration