osx - Handling "dyld: lazy symbol binding failed: Symbol not found" error when nm does not find symbol -


postprint "itemprop =" text ">

I have called a fat (32 and 64-bit) Intel binary myBinary that failed to do The Mac OS X 10.8.2 runs on another workstation running:

  $ myBinary dyld: lazy symbol has failed binding: referenced from __ZNSt8__detail15_List_node_base7_M_hookEPS0_: not found symbol / usr / local / Bin / myBinary in hope: /usr/lib/libstdc++.6.dylib dyld: Symbol not found: In expected / usr / local / bin / myBinary: referenced from __ZNSt8__detail15_List_node_base7_M_hookEPS0_ / usr / lib / libstdc ++. 6.Dylib Trace / BPT Trap: 5   

I compiled from a Mac OS X 10.8.2 GCC 4.7.2 running workstation:

 < Code> $ gcc --version gcc (MacPorts gcc47 4.7.2_2 + universal) 4.7.2   

I run nm and the symbol is undefined:

  $ nm / usr / local / bin / MyBinary | Grapple __ZNSt8__detail15_List_node_base7_M_hookEPS0_U __ZNSt8__detail15_List_node_base7_M_hookEPS0_   

What do I miss or when did myBinary compile wrong? What do I do in / usr / lib / libstdc ++ 6.dylib one ???? Â I should not have compiled the static in C ++ library myBinary is not sure what a missing symbol can do about

Yes you have 2 options, do not use libraries which the customer will not ... (You can provide them as an old or structured. )

Or just link the static library ... it really is in memory and in the disk space. Interpretation will be if your package is only one process, because you can strip those symbols do not use.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -