Compile error when using SDK in NimbleKit project - RadaeePDF.com
Signin/Signup with: 
Welcome, Guest
Username: Password: Remember me
13 Jul 2017
Microsoft has ended support for Windows Phone 8.1
Read More...
Questions about iOS development and PDF
  • Page:
  • 1

TOPIC: Compile error when using SDK in NimbleKit project

Compile error when using SDK in NimbleKit project 5 years 2 months ago #3718

  • Henry
  • Henry's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 5 years 2 months ago #3723

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
the core need libc

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

Compile error when using SDK in NimbleKit project 5 years 1 month ago #3996

  • jdrukman
  • jdrukman's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 5 years 1 month ago #3997

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
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 5 years 1 month ago #3999

  • jdrukman
  • jdrukman's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • 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 5 years 1 month ago #4003

  • radaee
  • radaee's Avatar
  • Offline
  • Moderator
  • Moderator
  • Posts: 846
  • Karma: 43
  • Thank you received: 12
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