我創建與Quickblox一個簡單的聊天應用程序中引用Quickblox鏈接器錯誤:delete操作符(無效*)」,從
所以我增加了項目的XCode酷似本教程:http://quickblox.com/developers/IOS-how-to-connect-Quickblox-framework
QBUsers類的工作只是罰款,但是當我用QBChat我開始鏈接錯誤:
Undefined symbols for architecture i386: "operator delete(void*)", referenced from: -[QBVideoChat initAudioCapture] in Quickblox(QBVideoChat.o) "operator new(unsigned long)", referenced from: -[QBVideoChat initAudioCapture] in Quickblox(QBVideoChat.o) "___gxx_personality_v0", referenced from: Dwarf Exception Unwind Info (__eh_frame) in Quickblox(QBVideoChat.o) ld: symbol(s) not found for architecture i386 clang: error: linker command failed with exit code 1 (use -v to see invocation)
下面是導致問題的行(如果我評論它,鏈接錯誤走開):
[[QBChat instance] setDelegate:self];
中發生的問題,實現以下協議類:
<QBActionStatusDelegate, QBChatDelegate>
這裏的框架,我導入到項目列表:
-lxml2 -lresolv -lz -framework AVFoundation -framework CoreVideo -framework Accelerate -framework CoreMedia -framework AudioToolbox -framework CoreData -framework CoreLocation -framework CoreGraphics -framework MobileCoreServices -framework SystemConfiguration -framework CFNetwork -framework Quickblox -framework UIKit -framework Foundation
我收錄了本教程中的所有庫...... – Sergey
如果確實如此,請嘗試清理該項目。有時候,這有助於解決這類問題。 –
您要麼缺少C++標準庫,要麼已鏈接到錯誤的C++標準庫(其中有兩個)。嘗試添加libC++或libstdC++。 –