Question

Here is the top part of my code,

#include <iostream>
#include <istream>
#include <fstream>
#include <vector>
#include <string>
#include <algorithm>
#include <iterator>
#include <exception>
#include <boost/tokenizer.hpp>
#include <boost/property_tree/ptree.hpp>
#include <boost/property_tree/json_parser.hpp>
#include <boost/foreach.hpp>
#include <boost/algorithm/string.hpp>
#include <boost/asio.hpp>
#include <boost/bind.hpp>
#include <boost/network/protocol/http/client.hpp> - No such file or directory
#include <boost/network.hpp> - No such file or directory

I coped the all the files in /cpp-netlib-0.10.1/boost/ into the boost folder where the other .hpp files reside that are found fine however it can not find the others. I tried to rebuild the index, I removed the inclusions and re-added it with no success.

Also if I remove the "boost/" portion from the path on the problem lines the header files will be found fine however header files linked from within those then have the same error.

Thanks for any help you guys can provide.

Était-ce utile?

La solution

Please try to change -I/netlib/cpp-netlib-0.10.1/boost to -I/netlib/cpp-netlib-0.10.1 (drop the trailing subfoler boost). I think it is included by the boost/ in the include statement

Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top