Hi,

I compiled podofo 0.9.2 on OS X 10.9 Mavericks (see my other mails for the 
patches I had to apply), and all the examples in the tools/ directory work just 
fine.

However, I encounter a strange linker error if I use podofo in a Cocoa test 
application.

In the Cocoa test application I link statically to libpodofo.a.

For test purposes, I added podofoxmp.cpp to the source files of the Cocoa 
application.

While podofoxmp.cpp built just fine in the context of the podofo source, I get 
the following linker error when building it within the Cocoa application:

###############################################

Undefined symbols for architecture x86_64:
  "PoDoFo::PdfStream::Set(char const*, long, std::vector<PoDoFo::EPdfFilter, 
std::allocator<PoDoFo::EPdfFilter> > const&)", referenced from:
      mymain(int, char**) in podofoxmp.o
ld: symbol(s) not found for architecture x86_64

###############################################

As soon as I comment out the two occurrences of

   metadata->GetStream()->Set(xmpBuf, xmpLen, PoDoFo::TVecFilters());

everything compiles fine.

Also, using other PoDoFo::PdfStream::Set variants (with other parameter 
combinations) instead would compile fine. It’s just using

   void Set (const char ∗szBuffer, pdf_long lLen, const TVecFilters &vecFilters)

that produces a linker error.


I’m currently at a loss as to why only one specific message call produces a 
linker error within the context of a Cocoa application, while exactly the same 
source compiled fine within the context of the podofo source itself.

Any ideas / hints / tipps?

Thanks a lot in advance!


Uli
------------------------------------------------------------------------------
_______________________________________________
Podofo-users mailing list
Podofo-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/podofo-users

Reply via email to