Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC:

Compile error when using SDK in NimbleKit project 10 years 8 months ago #3718

  • Henry
  • Henry's Avatar Topic Author
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
Dear AndroidPDF:

I used Nimblekit (nimblekit.com) to Develop APP originally, and now I want to use your PDFViewer SDK in my Nimblekit project.

But when I link library "libRDPDFLib.a" and import "PDFLib", it compiles error.

The error message is "Apple Mach-O Linker Error", and part of the information is below:
  "___gxx_personality_v0", referenced from:
   Dwarf Exception Unwind Info (__eh_frame) in libRDPDFLib.a(PDFAcroForm.o)
   Dwarf Exception Unwind Info (__eh_frame) in libRDPDFLib.a(PDFAction.o)
   Dwarf Exception Unwind Info (__eh_frame) in libRDPDFLib.a(PDFAnnot.o)
   Dwarf Exception Unwind Info (__eh_frame) in libRDPDFLib.a(PDFCMap.o)
   Dwarf Exception Unwind Info (__eh_frame) in libRDPDFLib.a(PDFColorSpace.o)
   Dwarf Exception Unwind Info (__eh_frame) in libRDPDFLib.a(PDFCommon.o)
   Dwarf Exception Unwind Info (__eh_frame) in libRDPDFLib.a(PDFDoc.o)
   ...

  "_absolute32", referenced from:
   _ftc_inode_weight in libRDPDFLib.a(ftcache.o)
   ld: symbol(s) not found for architecture i386
  
  clang: error: linker command failed with exit code 1 (use -v to see invocation)

May you help me to solve this problem, thank you very much.

Best Regards,
Henry

Please Log in or Create an account to join the conversation.

Compile error when using SDK in NimbleKit project 10 years 8 months ago #3723

  • radaee
  • radaee's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
the core need libc

Please Log in or Create an account to join the conversation.

Compile error when using SDK in NimbleKit project 10 years 7 months ago #3996

  • jdrukman
  • jdrukman's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
I can't get an app using your PDF lib to link. Same error as above. I added libc, libc++ and libstdc++ to Link Binary With Libraries build phase, but the error keeps happening. Please let me know how to fix it.

Please Log in or Create an account to join the conversation.

Compile error when using SDK in NimbleKit project 10 years 7 months ago #3997

  • radaee
  • radaee's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
using shared library wrapping in Xcode?

Please Log in or Create an account to join the conversation.

Last edit: by .

Compile error when using SDK in NimbleKit project 10 years 7 months ago #3999

  • jdrukman
  • jdrukman's Avatar
  • Offline
  • New Member
  • New Member
  • Posts: 2
  • Thank you received: 0
I just followed the directions in the ios_readme.pdf. I don't know what you mean by "shared lib wrapping" so probably not.

Please Log in or Create an account to join the conversation.

Compile error when using SDK in NimbleKit project 10 years 7 months ago #4003

  • radaee
  • radaee's Avatar
  • Away
  • Moderator
  • Moderator
  • Posts: 1123
  • Thank you received: 73
OK, if just absolute32 is absent.
you can write the function by yourself, like:
extern "C" int absolute32(int v)
{
  if( v < 0 ) return -v;
  else return v;
}
in C++

or
int absolute32(int v)
{
  if( v < 0 ) return -v;
  else return v;
}
in C

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Powered by Kunena Forum