在iPhone上调试一个模糊的错误

And*_*son 5 c++ iphone ipad

我的应用程序在iOS版本4.2和4.3上崩溃.崩溃的代码行在C++库中:

Ais8_001_22_Circle const *circle = dynamic_cast<Ais8_001_22_Circle const*>(*sa);
Run Code Online (Sandbox Code Playgroud)

控制台说:

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
Run Code Online (Sandbox Code Playgroud)

如果我能弄清楚"dylib#2"是什么,这可能会有所帮助.

And*_*son 1

事实证明我需要在 iOS 4.X 下包含 lstdc++ 链接器标志