Reputation: 13286
My app crashes on versions 4.2 and 4.3 of iOS. The line of code that crashes is in a C++ library:
Ais8_001_22_Circle const *circle = dynamic_cast<Ais8_001_22_Circle const*>(*sa);
The console says:
dyld: lazy symbol binding failed: can't resolve symbol ___dynamic_cast MY_APP
because dependent dylib #2 could not be loaded
dyld: can't resolve symbol ___dynamic_cast in MY_APP
because dependent dylib #2 could not be loaded
It would probably help if I could figure out what "dylib #2" is.
Upvotes: 5
Views: 491
Reputation: 13286
It turns out I needed to include the lstdc++ linker flag under iOS 4.X
Upvotes: 1
Reputation: 60518
One possibility - Is the C++ library you are linking to a dynamic library (dylib)? If so, you'll need find a statically linked version for iOS as iOS does not allow dynamic libraries.
Upvotes: 0