osx - Handling "dyld: lazy symbol binding failed: Symbol not found" error when nm does not find symbol -
I have called a fat (32 and 64-bit) Intel binary I compiled from a Mac OS X 10.8.2 GCC 4.7.2 running workstation: I run What do I miss or when did 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. 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
< Code> $ gcc --version gcc (MacPorts gcc47 4.7.2_2 + universal) 4.7.2
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_
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
Comments
Post a Comment