I’m getting the following error message when I try to compile an app using PDFNet:
ld: ‘_TRN_ActionCreateGoto’ in /Documents/Company/v3Repos/Joe/myApp/third_party/pdftron/libPDFNet.a(all-obfuscated.o) contains undefined reference for architecture armv7
clang: error: linker command failed with exit code 1 (use -v to see invocation)
or on simulator:
ld: ‘_TRN_ActionCreateGoto’ in third_party/pdftron/libPDFNet.a(all-obfuscated.o) contains undefined reference for architecture i386
clang: error: linker command failed with exit code 1 (use -v to see invocation)
A:
This error occurs if you have not linked against the GNU standard C++ library. Make sure that you have:
added -lstdc++ to the other linker flags
have changed C++ Standard Library option to libstdc++
if you are deploying for iOS 7 and greater, have at least one .mm file in your project.
Another cause for this error is if the header files used in your project were included with a different version of the library. Please make sure that the header files that you are using shipped with the library that you are using, and that the XCode project’s header/library search paths do not point to any old locations.