Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using cpp-netlib in a C++ project under Windows

Tags:

c++

cpp-netlib

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.

like image 768
user181218 Avatar asked Apr 10 '12 11:04

user181218


1 Answers

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.

like image 51
Simon Featherstone Avatar answered Oct 03 '22 17:10

Simon Featherstone