Debug incomprehensible error on iPhone

My application is broken on versions 4.2 and 4.3 of iOS. The line of code that crashes is in the 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

Perhaps this will help if I can figure out what dylib # 2 is.

+5
source share
2 answers

Turns out I need to enable the lstdC ++ linker flag in iOS 4.X

+1
source

One opportunity. Is the C ++ library you are linking to a dynamic library (dylib)? If so, you need to find a statically linked version for iOS, since iOS does not allow dynamic libraries.

0
source

All Articles