c++ - Visual Studio cannot open source file inspite of setup -


i'm running vs2015 on windows 10 , i'm having issues include directories. have setup additional include directories in c/c++ -> general , include directories in vc++ directories point right path (f:\boost_1_61_0). keep getting "cannot open source file" error. if move cursor include statement full include path in definition bar points correct address. happens when working google mock. core , stl includes work fine.

i've stripped down code try , work on 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 built code using netbeans adding additional include directory project without issues, not file access issue. compiler used netbeans g++, vs used msvc , tried icp same results.

thanks,

as the dark states above: make sure check build properties match.


Comments

Popular posts from this blog

PySide and Qt Properties: Connecting signals from Python to QML -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

scala - 'wrong top statement declaration' when using slick in IntelliJ -