在Windows下的C ++项目中使用cpp-netlib [英] Using cpp-netlib in a C++ project under Windows

查看:1441
本文介绍了在Windows下的C ++项目中使用cpp-netlib的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在我在Windows上运行的C ++项目中使用cpp-netlib库。
我已严格按照 http://cpp-netlib.github.com/getting_started.html 到Getting CMake部分,这是
我停止理解该指令的地方。 CMake确实是非强制性的吗?如果是,需要哪些确切步骤,以便我可以在我的项目中使用该库?



如果有人可以在这里向我提供说明,它会是
伟大的。谷歌没有帮助我这么多。

解决方案

同样的问题:



/ p>

从我在

中转储cpp-netlib-0.9.4的目录

  cd .. 
mkdir cpp-netlib-build
cd cpp-netlib-build
cmake.exe -GVisual Studio 10-DBOOST_ROOT:string =C:\Dev\\ \\Boost\boost_1_51_0../cpp-netlib-0.9.4

(您的路径可能会有所不同)
这将使用VS10解决方案和项目填充cpp-netlib-build目录。


I want to use the cpp-netlib library in a C++ project of mine running on Windows. I've strictly followed the instructions under http://cpp-netlib.github.com/getting_started.html up to the "Getting CMake" section, which is where I stopped understanding the instruction. Is CMake indeed non-obligatory? If so, what are the exact steps required so I can use the library in my projects?

If someone could provide me with instructions here, or refer me to a detailed guide it'd be great. Google didn't help me that much.

解决方案

Same problem here:

I got it going with

From the directory I dumped cpp-netlib-0.9.4 in

cd ..
mkdir cpp-netlib-build
cd cpp-netlib-build
cmake.exe -G "Visual Studio 10" -DBOOST_ROOT:string="C:\Dev\Boost\boost_1_51_0" ../cpp-netlib-0.9.4

(Your paths may vary) This populates the cpp-netlib-build directory with a VS10 solution and projects.

这篇关于在Windows下的C ++项目中使用cpp-netlib的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆