what should I do to use boost library for my c++ project in VisualStudio 2013 -



what should I do to use boost library for my c++ project in VisualStudio 2013 -

hi first time using boost library in c++ project dont know should it.

here part of code related boost :

#include <boost/spirit/include/qi.hpp> #include <boost/spirit/include/phoenix.hpp> #include <boost/spirit/include/phoenix_operator.hpp> #include <boost/variant/recursive_wrapper.hpp> #include <boost/lexical_cast.hpp> namespace qi = boost::spirit::qi; namespace phx = boost::phoenix; struct op_or {}; struct op_and {}; struct op_not {}; typedef std::string var; template <typename tag> struct binop; template <typename tag> struct unop;

i've downloaded boost_1_55 , extract boost/spirit ,boost/variant/recursive_wrapper.hpp , boost/lexical_cast.hpp c:// .after i've added them project right clicking project , choosing add together existing item . now, if replace headers below

#include "qi.hpp" #include "phoenix.hpp" #include "phoenix_operator.hpp" #include "recursive_wrapper.hpp" #include "lexical_cast.hpp"

errors on header files gone compiler still gives error @ :

#include <boost/variant/recursive_wrapper.hpp> #include <boost/lexical_cast.hpp>

lines. says "error name followed :: must class or namespace". there know should ?

an easy way install latest version of nuget. utilize extension gallery search/find/install boost nuget package.

the added boost.targets add together automatically add together paths resolve libs , headers you.

c++ boost visual-studio-2013

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

c# - Create a Notification Object (Email or Page) At Run Time -- Dependency Injection or Factory -

Set Up Of Common Name Of SSL Certificate To Protect Plesk Panel -