Q: Visual Studio cannot open source file inspite of setup I'm running VS2015 on Windows 10 and I'm having issues with include directories. I have setup the Additional Include Directories in C/C++ -> General and Include Directories in VC++ Directories to point to the right path (F:\boost_1_61_0). I keep getting the "Cannot open source file" error. If I move the cursor to the include statement the full include path in the Definition bar points to the correct address. This also happens when working with Google Mock. All the core and STL includes work just fine.
I've stripped down the code to try and just get it to work on this basic Boost test code:
#include <boost/lambda/lambda.hpp>
#include <iostream>
#include <iterator>
#include <algorithm>

int main()
{
    using namespace boost::lambda;
    typedef std::istream_iterator<int> in;

    std::for_each(
    in(std::cin), in(), std::cout << (_1 * 3) << " " );
}

I've successfully built this code using Netbeans by adding the additional include directory to the project without any issues, so its not a file access issue. The compiler used from Netbeans was G++, but from VS I used MSVC and tried ICP with the same results.
Thanks,

A: As The Dark states above: make sure you check that the build properties match.
