坑爹的高德地图API

症状

ld: '-[MASearch poiSearchWithOption:]' in *****/Release-iphonesimulator/libMASearchKit.a(MASearch.o) contains undefined reference for architecture i386

clang: error: linker command failed with exit code 1 (use -v to see invocation)

同样的错误已经有人反映到了高德官方论坛和cocoa论坛,但是无人回应。

解决方案

参见:http://bbs.amap.com/thread-5733-1-1.html

这是高德自身教程的一个bug。

高德地图的库是使用Objective-C++编译的,因此,在依赖库中,要链接上libstdc++.dylib

posted on 2013-07-27 19:32  大宝pku  阅读(1044)  评论(0编辑  收藏  举报

导航