CURL的使用

    xiaoxiao2021-03-25  236

    使用cocos2dx3.14.1版本,CURL放在<external/curl/include/win32/curl/curl.h>中

    新建cocos2dx项目,在Xcode中打开工程文件,在头文件中引入:

    #include <external/curl/include/win32/curl/curl.h>

    真机调试,运行报错:ld: symbol(s) not found for architecture arm64

    解决:加入libcurl.a框架(发现在xcode中搜不到,点击 add other...)

    运行报错:ld: library not found for -lcrypto

    解决:http://www.cnblogs.com/wuxiufang/p/3645518.html  

    eg:xx/xx/xx/xx/bb/

    bb放了libcurl.a

    转载请注明原文地址: https://ju.6miu.com/read-472.html

    最新回复(0)