linux c++ 没有Makefile文件,自己写了一个Makefile报错
liuweiwei1211 发布于2016-09 浏览:1420 回复:2
0
收藏

linux c++ 没有Makefile文件,自己写了一个Makefile报错,是否可以提供一个Makefile测试。c 的token名称不知道写那个问题。 error: size of array ‘__curl_rule_01__’ is negative [CurlchkszEQ(long, CURL_SIZEOF_LONG)];

收藏
点赞
0
个赞
共2条回复 最后由用户已被禁言回复于2022-04
#3xieymxj回复于2016-10

多谢支持百度语音技术。

0
#2liuweiwei1211回复于2016-09

Ubuntu 14.04

安装libjsoncpp

sudo apt-get install libjsoncpp-dev

安装libcurl
sudo apt-get install libcurl4-openssl-dev

修改头文件

#include "curl/curl.h"

#include "curl/easy.h"

#include "jsoncpp/json/json.h"


修改token,因为本程序不能读取token

buffer["token"]   = “添加java读取的token”


可以实现返回 百度提供技术支持


0
TOP
切换版块