Hi all,

 

I'm new to PoDoFo, and have little idea how the library works- so a few
hours ago, I decided to take a shot at compiling one of the

sample applications, only to find that the code DOES not compile unless I
give the exact sourcecode folder (-I/home/robert_/podofo-0.9.1).

 

If I don't, I receive the following compiler errors:

 

[robert_@devsta0 helloworld]$ c++ -lpodofo
-DPODOFO_HAVE_GCC_SYMBOL_VISIBILITY -I/usr/include/podofo
-I/usr/include/freetype2 -fvisibility=hidden -o helloworld helloworld.cpp

In file included from /usr/include/podofo/podofo-base.h:29:0,

                 from /usr/include/podofo/podofo.h:34,

                 from helloworld.cpp:39:

/usr/include/podofo/base/PdfArray.h:44:21: error: âPdfObjectâ was not
declared in this scope

/usr/include/podofo/base/PdfArray.h:44:30: error: template argument 1 is
invalid

/usr/include/podofo/base/PdfArray.h:44:30: error: template argument 2 is
invalid

/usr/include/podofo/base/PdfArray.h:44:49: error: invalid type in
declaration before â;â token

/usr/include/podofo/base/PdfArray.h:46:27: error: expected initializer
before â:â token

/usr/include/podofo/base/PdfArray.h:273:6: error: âPdfArrayâ has not been
declared

/usr/include/podofo/base/PdfArray.h: In function âvoid PoDoFo::Clear()â:

/usr/include/podofo/base/PdfArray.h:275:19: error: âAssertMutableâ was not
declared in this scope

/usr/include/podofo/base/PdfArray.h:277:5: error: invalid use of âthisâ in
non-member function

/usr/include/podofo/base/PdfArray.h: At global scope:

/usr/include/podofo/base/PdfArray.h:283:8: error: âPdfArrayâ has not been
declared

/usr/include/podofo/base/PdfArray.h:283:28: error: non-member function
âsize_t PoDoFo::GetSize()â cannot have cv-qualifier

/usr/include/podofo/base/PdfArray.h: In function âsize_t PoDoFo::GetSize()â:

/usr/include/podofo/base/PdfArray.h:285:12: error: invalid use of âthisâ in
non-member function

/usr/include/podofo/base/PdfArray.h: At global scope:

/usr/include/podofo/base/PdfArray.h:291:6: error: âPdfArrayâ has not been
declared

/usr/include/podofo/base/PdfArray.h:291:33: error: âPdfObjectâ does not name
a type

/usr/include/podofo/base/PdfArray.h: In function âvoid
PoDoFo::push_back(const int&)â:

/usr/include/podofo/base/PdfArray.h:293:19: error: âAssertMutableâ was not
declared in this scope

/usr/include/podofo/base/PdfArray.h:295:39: error: invalid use of
qualified-name â::push_backâ

/usr/include/podofo/base/PdfArray.h:296:5: error: âm_bDirtyâ was not
declared in this scope

/usr/include/podofo/base/PdfArray.h: At global scope:

/usr/include/podofo/base/PdfArray.h:302:8: error: âPdfArrayâ has not been
declared

/usr/include/podofo/base/PdfArray.h:302:25: error: non-member function
âsize_t PoDoFo::size()â cannot have cv-qualifier

/usr/include/podofo/base/PdfArray.h: In function âsize_t PoDoFo::size()â:

/usr/include/podofo/base/PdfArray.h:304:12: error: âPdfArrayBaseClassâ is
not a class or namespace

/usr/include/podofo/base/PdfArray.h: At global scope:

/usr/include/podofo/base/PdfArray.h:310:6: error: âPdfArrayâ has not been
declared

/usr/include/podofo/base/PdfArray.h:310:24: error: non-member function âbool
PoDoFo::empty()â cannot have cv-qualifier

/usr/include/podofo/base/PdfArray.h: In function âbool PoDoFo::empty()â:

/usr/include/podofo/base/PdfArray.h:312:12: error: âPdfArrayBaseClassâ is
not a class or namespace

/usr/include/podofo/base/PdfArray.h: At global scope:

/usr/include/podofo/base/PdfArray.h:318:1: error: âPdfObjectâ does not name
a type

/usr/include/podofo/base/PdfArray.h:329:7: error: âPdfObjectâ does not name
a type

/usr/include/podofo/base/PdfArray.h:337:6: error: âPdfArrayâ has not been
declared

/usr/include/podofo/base/PdfArray.h:337:35: error: âvalue_typeâ has not been
declared

/usr/include/podofo/base/PdfArray.h: In function âvoid
PoDoFo::resize(size_t, int)â:

/usr/include/podofo/base/PdfArray.h:339:12: error: âPdfArrayBaseClassâ is
not a class or namespace

/usr/include/podofo/base/PdfArray.h:339:46: error: return-statement with a
value, in function returning 'void' [-fpermissive]

/usr/include/podofo/base/PdfArray.h: At global scope:

/usr/include/podofo/base/PdfArray.h:345:1: error: âPdfArrayâ does not name a
type

/usr/include/podofo/base/PdfArray.h:353:1: error: âPdfArrayâ does not name a
type

/usr/include/podofo/base/PdfArray.h:361:1: error: âPdfArrayâ does not name a
type

/usr/include/podofo/base/PdfArray.h:369:1: error: âPdfArrayâ does not name a
type

/usr/include/podofo/base/PdfArray.h:377:1: error: âPdfArrayâ does not name a
type

/usr/include/podofo/base/PdfArray.h:385:1: error: âPdfArrayâ does not name a
type

/usr/include/podofo/base/PdfArray.h:393:1: error: âPdfArrayâ does not name a
type

/usr/include/podofo/base/PdfArray.h:401:1: error: âPdfArrayâ does not name a
type

/usr/include/podofo/base/PdfArray.h:415:6: error: âPdfArrayâ has not been
declared

/usr/include/podofo/base/PdfArray.h:415:29: error: âPdfArrayâ does not name
a type

/usr/include/podofo/base/PdfArray.h:415:47: error: expected unqualified-id
before â&â token

/usr/include/podofo/base/PdfArray.h:415:47: error: expected â)â before â&â
token

/usr/include/podofo/base/PdfArray.h:415:47: error: expected initializer
before â&â token

/usr/include/podofo/base/PdfArray.h:429:1: error: âPdfArrayâ does not name a
type

/usr/include/podofo/base/PdfArray.h:440:6: error: âPdfArrayâ has not been
declared

/usr/include/podofo/base/PdfArray.h:440:29: error: âiteratorâ does not name
a type

/usr/include/podofo/base/PdfArray.h: In function âvoid PoDoFo::erase(const
int&)â:

/usr/include/podofo/base/PdfArray.h:442:19: error: âAssertMutableâ was not
declared in this scope

/usr/include/podofo/base/PdfArray.h:444:35: error: invalid use of
qualified-name â::eraseâ

/usr/include/podofo/base/PdfArray.h:445:5: error: âm_bDirtyâ was not
declared in this scope

/usr/include/podofo/base/PdfArray.h: At global scope:

/usr/include/podofo/base/PdfArray.h:451:6: error: âPdfArrayâ has not been
declared

/usr/include/podofo/base/PdfArray.h:451:29: error: âiteratorâ does not name
a type

/usr/include/podofo/base/PdfArray.h:451:52: error: âiteratorâ does not name
a type

/usr/include/podofo/base/PdfArray.h: In function âvoid PoDoFo::erase(const
int&, const int&)â:

/usr/include/podofo/base/PdfArray.h:453:19: error: âAssertMutableâ was not
declared in this scope

/usr/include/podofo/base/PdfArray.h:455:31: error: invalid use of
qualified-name â::eraseâ

/usr/include/podofo/base/PdfArray.h:456:5: error: âm_bDirtyâ was not
declared in this scope

/usr/include/podofo/base/PdfArray.h: At global scope:

/usr/include/podofo/base/PdfArray.h:462:6: error: âPdfArrayâ has not been
declared

/usr/include/podofo/base/PdfArray.h:462:24: error: variable or field
âreserveâ declared void

/usr/include/podofo/base/PdfArray.h:462:24: error: âsize_typeâ was not
declared in this scope

/usr/include/podofo/base/PdfArray.h:470:1: error: âPdfObjectâ does not name
a type

/usr/include/podofo/base/PdfArray.h:478:7: error: âPdfObjectâ does not name
a type

/usr/include/podofo/base/PdfArray.h:486:1: error: âPdfObjectâ does not name
a type

/usr/include/podofo/base/PdfArray.h:494:7: error: âPdfObjectâ does not name
a type

/usr/include/podofo/base/PdfArray.h:502:6: error: âPdfArrayâ has not been
declared

/usr/include/podofo/base/PdfArray.h:502:34: error: âPdfArrayâ does not name
a type

/usr/include/podofo/base/PdfArray.h:502:51: error: non-member function âbool
PoDoFo::operator==(const int&)â cannot have cv-qualifier

/usr/include/podofo/base/PdfArray.h:502:51: error: âbool
PoDoFo::operator==(const int&)â must have an argument of class or enumerated
type

/usr/include/podofo/base/PdfArray.h:511:6: error: âPdfArrayâ has not been
declared

/usr/include/podofo/base/PdfArray.h:511:34: error: âPdfArrayâ does not name
a type

/usr/include/podofo/base/PdfArray.h:511:51: error: non-member function âbool
PoDoFo::operator!=(const int&)â cannot have cv-qualifier

/usr/include/podofo/base/PdfArray.h:511:51: error: âbool
PoDoFo::operator!=(const int&)â must have an argument of class or enumerated
type

/usr/include/podofo/base/PdfArray.h:517:9: error: âPdfArrayâ does not name a
type

/usr/include/podofo/base/PdfArray.h:518:9: error: âPdfArrayâ does not name a
type

/usr/include/podofo/base/PdfArray.h:519:9: error: âPdfArrayâ does not name a
type

In file included from /usr/include/podofo/doc/PdfAcroForm.h:25:0,

                 from /usr/include/podofo/podofo.h:37,

                 from helloworld.cpp:39:

/usr/include/podofo/doc/PdfElement.h:47:22: error: variable
âPoDoFo::PODOFO_DOC_API PoDoFo::PdfElementâ has initializer but incomplete
type

/usr/include/podofo/doc/PdfElement.h:49:2: error: expected
primary-expression before âpublicâ

/usr/include/podofo/doc/PdfElement.h:49:2: error: expected â}â before
âpublicâ

/usr/include/podofo/doc/PdfElement.h:49:2: error: expected â,â or â;â before
âpublicâ

/usr/include/podofo/doc/PdfElement.h:56:12: error: âPdfObjectâ does not name
a type

/usr/include/podofo/doc/PdfElement.h:63:18: error: âPdfObjectâ does not name
a type

/usr/include/podofo/doc/PdfElement.h:65:2: error: expected unqualified-id
before âprotectedâ

/usr/include/podofo/doc/PdfElement.h:78:38: error: âPdfDocumentâ has not
been declared

/usr/include/podofo/doc/PdfElement.h:78:60: error: expected constructor,
destructor, or type conversion before â;â token

/usr/include/podofo/doc/PdfElement.h:89:38: error: âPdfObjectâ has not been
declared

/usr/include/podofo/doc/PdfElement.h:89:58: error: expected constructor,
destructor, or type conversion before â;â token

/usr/include/podofo/doc/PdfElement.h:101:15: error: expected constructor,
destructor, or type conversion before â(â token

/usr/include/podofo/doc/PdfElement.h:119:76: error: non-member function
âconst char* PoDoFo::TypeNameForIndex(int, const char**, long int)â cannot
have cv-qualifier

/usr/include/podofo/doc/PdfElement.h:135:100: error: non-member function
âint PoDoFo::TypeNameToIndex(const char*, const char**, long int, int)â
cannot have cv-qualifier

/usr/include/podofo/doc/PdfElement.h:148:5: error: âPdfObjectâ does not name
a type

/usr/include/podofo/doc/PdfElement.h:156:12: error: âPdfObjectâ does not
name a type

/usr/include/podofo/doc/PdfElement.h:158:2: error: expected unqualified-id
before âprivateâ

/usr/include/podofo/doc/PdfElement.h:165:8: error: âPdfObjectâ does not name
a type

/usr/include/podofo/doc/PdfElement.h:173:14: error: âPdfObjectâ does not
name a type

/usr/include/podofo/doc/PdfElement.h:181:8: error: âPdfObjectâ does not name
a type

/usr/include/podofo/doc/PdfElement.h:186:1: error: expected declaration
before â}â token

 

I'm a bit confused as to why I would be getting these errors- am I to take
it that PoDoFo doesn't install enough of itself to compile sample
applications properly? Or am I to take it that I'm supposed to keep a copy
of the PoDoFo sourcecode around whenever I want/need to build an application
which uses -lpodofo? Is this a compile process bug of sorts, or am *I* doing
something incorrectly? If somebody could enlighten to me as to which, it
would be MUCH appreciated.

 

My gcc/c++ compiler version is the following:

[robert_@devsta0 helloworld]$ c++ -v

Using built-in specs.

COLLECT_GCC=c++

COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-pc-linux-gnu/4.6.0/lto-wrapper

Target: i686-pc-linux-gnu

Configured with: /build/src/gcc-4.6-20110603/configure --prefix=/usr
--libdir=/usr/lib --libexecdir=/usr/lib --mandir=/usr/share/man
--infodir=/usr/share/info --with-bugurl=https://bugs.archlinux.org/
--enable-languages=c,c++,ada,fortran,go,lto,objc,obj-c++ --enable-shared
--enable-threads=posix --with-system-zlib --enable-__cxa_atexit
--disable-libunwind-exceptions --enable-clocale=gnu
--enable-gnu-unique-object --enable-linker-build-id --with-ppl
--enable-cloog-backend=isl --enable-lto --enable-gold --enable-ld=default
--enable-plugin --with-plugin-ld=ld.gold --disable-multilib
--disable-libstdcxx-pch --enable-checking=release

Thread model: posix

gcc version 4.6.0 20110603 (prerelease) (GCC)

------------------------------------------------------------------------------
EditLive Enterprise is the world's most technically advanced content
authoring tool. Experience the power of Track Changes, Inline Image
Editing and ensure content is compliant with Accessibility Checking.
http://p.sf.net/sfu/ephox-dev2dev
_______________________________________________
Podofo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to