VC9 C1083 Cannot open include file: 'boost...' after trying to abstract an include dependency

Posted by ronivek on Stack Overflow See other posts from Stack Overflow or by ronivek
Published on 2010-03-14T05:39:55Z Indexed on 2010/03/14 5:45 UTC
Read the original article Hit count: 221

Filed under:
|
|
|

Hey,

So I've been working on a project for the past number of weeks and it uses a number of Boost libraries. In particular I'm using the boost::dynamic_bitset library quite extensively.

I've had zero issues up until now; but tonight I discovered a dependency between some includes which I had to resolve; and I tried to do so by providing an abstract callback class.

Effectively I now have the following:

First include...

class OtherClassCallback
{
public:
    virtual int someOtherMethod() const = 0;
};

class SomeClass
{
public:
    void someMethod(OtherClassCallback *oc) {
        ...
        oc->someOtherMethod();
        ...
    }
};

Second include...

#include "SomeClass.h"

class SomeOtherClass : public OtherClassCallback
{
public:
    int someOtherMethod() const { return this->someInt; }
};

Here is the issue; ever since I implemented this class I'm now getting the following error:

fatal error C1083: Cannot open include file: 'boost/dynamic_bitset/dynamic_bitset.hpp': No such file or directory

Now I'm getting no other compiler errors; and it's a pretty substantial project. My include paths and so on are perfect; my files are fully accessible and removing the changes fixes the issue.

Does anyone have any idea what might be going on? I'm compiling to native Windows executables in VS9.

I should confess that I'm very inexperienced with C++ in general so go easy on me if it's something horribly straightforward; I can't figure it out.

© Stack Overflow or respective owner

Related posts about c++

Related posts about boost