集成银联sdk后会报以下错误"std::terminate()", referenced from:

"std::terminate()", referenced from:

"operator delete[](void*)", referenced from:

"operator delete(void*)", referenced from:

"operator new[](unsigned long)", referenced from:

"operator new(unsigned long)", referenced from:

"___cxa_begin_catch", referenced from:

"___gxx_personality_v0", referenced from:

是因为工程不支持C++,(错误中出现两个冒号的一般都是工程不支持C++的问题)

解决办法:将调用银联接口的文件后缀改为 .mm  即可

.c  C代码

.cpp C++代码

.m  C代码 + OC代码

.MM C代码 + OC代码 + C++代码

你可能感兴趣的:(集成银联sdk后会报以下错误"std::terminate()", referenced from:)