CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    May 2014
    Posts
    205

    How to configurate the Visual Studio C/C++ Additional Include Directories?

    I want to include boost directory. What must be in the
    Additional Include Directories input?

    I tried

    C:\C++\boost_1_55_0\libs\accumulators\example;$(BOOST_ROOT);%(AdditionalIncludeDirectories)

    But I am still getting error "Cannot open include file: 'boost/libs/accumulators/lambda/lambda.hpp': No such file or directory" when I include
    Code:
    #include <boost/libs/accumulators/lambda/lambda.hpp>
    The file is placed out side of boost directory of sure.
    Last edited by crazy boy; June 16th, 2014 at 05:01 AM. Reason: Additional Include Directories, not headers

  2. #2
    GCDEF is offline Elite Member Power Poster
    Join Date
    Nov 2003
    Location
    Florida
    Posts
    12,635

    Re: How to configurate the Visual Studio C/C++ Additional Include Headers?

    The word is "configure".

    In VC2012 it's

    Project
    Properties
    Configuration Properties
    C/C++
    Additional Include Directories

  3. #3
    Join Date
    May 2014
    Posts
    205

    Re: How to configurate the Visual Studio C/C++ Additional Include Headers?

    GCFED:
    I know where - but I dont know how?

    This is my settings:
    C:\C++\boost_1_55_0;%(AdditionalIncludeDirectories)

    Can somebody explain to me what meant the:

    $(BOOST); %(AdditionalIncludeDirectories)

    Should I replace the line - how?
    Last edited by crazy boy; June 16th, 2014 at 09:16 AM.

  4. #4
    Join Date
    May 2014
    Posts
    205

    Re: How to configurate the Visual Studio C/C++ Additional Include Headers?

    I repaired it.

    Seems there are two directories which should be included.

    Either this way:
    C:\C++\boost_1_55_0\;C:\C++\boost_1_55_0\libs
    and include command then looks like this
    Code:
    #include <boost/lambda/lambda.hpp>
    this works.
    Last edited by crazy boy; June 16th, 2014 at 09:39 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured