Undefined Symbols Error


If you get following output when integrating PSPDFKit:

Copy
1
2
3
4
5
6
7
8
Undefined symbols for architecture i386: 

"operator delete(void*)", referenced from: 
___PSPDFInvokeRuntimePatches_block_invoke in PSPDFKit(PSPDFPatches.o) 
"operator new(unsigned long)", referenced from: 
___PSPDFInvokeRuntimePatches_block_invoke in PSPDFKit(PSPDFPatches.o) 
ld: symbol(s) not found for architecture i386 
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Then you're missing the -lc++ linker flag that is required since PSPDFKit 4.2.0.

See Integration for details.

Was this page helpful? We're happy to answer any questions.