- Posts: 2
- Thank you received: 0
Microsoft Windows Phone 8.1 support ends (13 Jul 2017)
Microsoft has ended support for Windows Phone 8.1
Questions about iOS development and PDF
Compile error when using SDK in NimbleKit project
IP: 192.168.0.70
12 years 6 months ago #3718
by Henry
Compile error when using SDK in NimbleKit project was created by Henry
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:
May you help me to solve this problem, thank you very much.
Best Regards,
Henry
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:
Code:
"___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
IP: 192.168.0.70
12 years 6 months ago #3723
by radaee
Replied by radaee on topic Compile error when using SDK in NimbleKit project
the core need libc
IP: 192.168.0.70
12 years 5 months ago #3996
by jdrukman
Replied by jdrukman on topic Compile error when using SDK in NimbleKit project
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.
IP: 192.168.0.70
12 years 5 months ago - 12 years 5 months ago #3997
by radaee
Replied by radaee on topic Compile error when using SDK in NimbleKit project
using shared library wrapping in Xcode?
Last edit: 12 years 5 months ago by .
IP: 192.168.0.70
12 years 5 months ago #3999
by jdrukman
Replied by jdrukman on topic Compile error when using SDK in NimbleKit project
I just followed the directions in the ios_readme.pdf. I don't know what you mean by "shared lib wrapping" so probably not.
IP: 192.168.0.70
12 years 5 months ago #4003
by radaee
Replied by radaee on topic Compile error when using SDK in NimbleKit project
OK, if just absolute32 is absent.
you can write the function by yourself, like:
in C++
or
in C
you can write the function by yourself, like:
Code:
extern "C" int absolute32(int v)
{
if( v < 0 ) return -v;
else return v;
}
or
Code:
int absolute32(int v)
{
if( v < 0 ) return -v;
else return v;
}
Time to create page: 0.430 seconds