iOS Compile Error: libPDFNet.a(all-obfuscated.o) contains undefined reference for architecture armv7

Q:

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.

I have tried to Integrate latest library in our code.
  But it gives below error and not able to compile even.

  Error : libPDFNet.a(all-obfuscated.o) contains undefined reference for architecture armv7

  To resolve this, I have tried mentioned in below links.

      1. https://groups.google.com/forum/#!profile/pdfnet-sdk/APn2wQd_gt5lbWDtZk1n3bfICYrOZ4RLnbFKxN_YbRiZC7jeVrkSXDbTRQ4RvGUxpiSzJTzeDxqg/pdfnet-sdk/jYNvzQQLcH0/c7wsFvTlQGkJ
      2. http://stackoverflow.com/questions/18959691/ios7-only-stdlibc-linking-issue
      3. https://groups.google.com/forum/#!msg/pdfnet-sdk/jYNvzQQLcH0/EddLbhz6txUJ

  After this got below errors,

      Error : unknown type name ‘namespace’
  
  After that tried with options given in below links but not succeed.

      1. http://stackoverflow.com/questions/13602249/how-to-fix-error-unknown-type-name-namespace

  Below is the configuration that we are using.
      1. iOS version : iOS 7
      2. xcode version : 5.0.2