Hey, allow me to make a sketch of the situation:
in foo.cc
in bar.h
in bar.cc
When I compile the code, it will fail because it can't find "actor" in bar. I can't seem to forward declare it, and I can't use a static actor either (I need 'Actor actor' to come after '#include "bar.h"'). Help?
Thanks
Ed
in foo.cc
Code:
#include "bar.h" Actor actor;
Code:
class Bar {
public:
void doSomething();
};
Code:
#include "bar.h"
Bar::doSomething() {
actor.action();
}
Thanks
Ed
Comment