Take the 2-minute tour ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

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.

share|improve this question
    
Did you end up figuring this out? I am trying to use this too. –  baruch Jun 1 '12 at 8:42
    
Unfortunately no. Eventually we used a different technology. –  user181218 Jun 28 '12 at 15:40
    
Updated link to the latest getting started guide. –  ladenedge Aug 18 '13 at 8:00

1 Answer 1

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.

share|improve this answer
    
I really liked cpp-netlib's use of Boost, and the structure of it's API, but due to bugs I opted for Poco in the end. –  Simon Featherstone Nov 26 '12 at 11:29
    
Instead of -DBOOST_ROOT:string I had to specify -DBOOST_INCLUDEDIR:string and -DBOOST_LIBRARYDIR:string separately. Also, -G "Visual Studio 11" worked with VS2012. –  Yodan Tauber Jan 31 '13 at 12:17
    
The generated VS projects did not specify the BOOST_LIBRARYDIR as an additional library folder, I had to add it manually to all project. –  Yodan Tauber Jan 31 '13 at 13:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.