Hi all,
I'm trying to link up some of the boost stuff with a visual C++ project of mine and am not sure what the best way to do this is, I'm specifically interested in the singleton class.
Hi all,
I'm trying to link up some of the boost stuff with a visual C++ project of mine and am not sure what the best way to do this is, I'm specifically interested in the singleton class.
You need to download boost libraries, build them. Then link against the libraries you want, and add boost directory to your additional include headers.
THis link from boost is helpful: http://www.boost.org/doc/libs/1%5F40%5F0/more/getting%5Fstarted/windows.html
I don't want to RTFM but Boost Getting Started on Windows is the first place to go.
As you can see from the TOC, it is a very coherent walkthrough.
- Get Boost
- The Boost Distribution
- Header-Only Libraries
- Build a Simple Program Using Boost
- Build From the Visual Studio IDE
- Or, Build From the Command Prompt
- Errors and Warnings
Most of boost is headers only and all you have to do is
- Download boost
- Move them to your include folder in visual c++
- Include the wanted headers:
//Your headers of choice
#include <boost/shared_ptr.hpp>
#include <boost/foreach.hpp>
This obviously doesn't work with headers you need to compile, you have the other answers for that, and I'm not familiar with any Singleton class.
But I don't know of any Singleton, at least as top-level library.