c++ - 如何在 Mac OSx 10.8 上构建 curlpp

标签 c++ curl makefile libcurl curlpp

我想尝试 libcurl 的 C++ 包装器; curl 。文档似乎不存在。我正在按照我在此处找到的步骤进行操作:

http://wiki.hartungdesign.net/docs:mac:builds:curlpp

这基本上只是说做典型的 1. ./configure(带有一些参数) 2.制作

'make' 失败并出现以下错误:

Making all in src Making all in utilspp /bin/sh ../../libtool --silent --tag=CXX --mode=compile g++ -DHAVE_CONFIG_H -I. -I../../include/curlpp -I../../include -g -W -Wall -Werror -MT LifetimeLibrary.lo -MD -MP -MF .deps/LifetimeLibrary.Tpo -c -o LifetimeLibrary.lo LifetimeLibrary.cpp In file included from LifetimeLibrary.cpp:1:0: ../../include/utilspp/singleton/SingletonHolder.hpp:27:19: fatal error: cassert: No such file or directory compilation terminated.

有人在 Mac 上构建这个库时遇到过这个问题吗?我需要编辑 MakeFile 吗?

谢谢!

最佳答案

code.google.com 下载 curlpp打开生成文件

移除

SUBDIRS = src include examples doc 

添加

SUBDIRS = src include doc

$cd /curlpp-0.7.3/
$make
$sudo make install

关于c++ - 如何在 Mac OSx 10.8 上构建 curlpp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16884760/

相关文章:

c++ - 为 vector 中的所有对象动态调用 C++ 类成员

c++ - TS Concepts 类型名约束

c++ - 推导函数参数包的模板参数是否有缺陷

php - Composer 安装失败

python - 如何使用 urllib3 在 Python 上发出 Post 请求?

c - 参数列表太长。构建 Hubbub HTML 解析库。执行

c++ - 解决方案不适用于两个日期之间的天数

sockets - curl “Couldn' t连接到服务器”

c++ - Makefile 给我一个错误 - 没有这样的文件或目录

makefile - 如何让 GNU make 删除由隐式规则创建的中间目录?