[cfe-dev] Disable Header Search Option and errors related to it
Richard Smith
richard at metafoo.co.uk
Tue Jul 10 13:35:28 PDT 2012
On Tue, Jul 10, 2012 at 3:12 AM, Satya Prakash Prasad <
satyaprakash.prasad at gmail.com> wrote:
> I managed to solve an include path issue but the below one I am unable
> to resolve it completely:
>
> In file included from Test.cpp1:
> In file included from /code/Tools.h:9:
> In file included from /usr/include/boost/shared_ptr.hpp:17:
> In file included from /usr/include/boost/config.hpp:40:
> /usr/include/boost/config/select_stdlib_config.hpp:20:10: fatal error:
> 'utility' file not found
> #include <utility>
> ^
> Stack dump:
> 0. utility/core/lang/Object.h:7:1: current parser token 'class'
> Segmentation fault
>
> box> locate utility.h
> /usr/include/boost/utility.hpp
> /usr/include/boost/graph/graph_utility.hpp
> /usr/include/boost/numeric/interval/utility.hpp
> /usr/include/boost/serialization/utility.hpp
> /usr/include/boost/spirit/utility.hpp
> /usr/include/glibmm-2.4/glibmm/utility.h
> /usr/share/doc/db4-devel-4.3.29/ref/dumpload/utility.html
>
> So I have within my code:
>
> HS.AddPath("/usr/include/boost/", frontend::Angled, true, false, true);
> HS.UseBuiltinIncludes = 1;
> HS.UseStandardCXXIncludes = 1;
> HS.UseStandardSystemIncludes = 1;
> HS.Verbose = 1;
>
> Please let me know how can I resolve the same? Am I missing something here?
Yes. "utility" != "utility.h"; you're now missing the include paths for
your standard library.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120710/1cbea4fe/attachment.html>
More information about the cfe-dev
mailing list