Download

Cannot open include file: 'Foo.h': No such file or directory

Beginner when it comes to integrating C++ and Blueprints.
What I’ve done.
Create a core C++ Class derived from pawn. (Ball.cpp)

And then from the editor right clicked this class and created a Blueprint from this class(bp_Ball.cpp)

However when I compile in Visual studio I get an error thrown in the header file (bp_Ball.h)
saying that
Cannot open include file: ‘Ball.h’: No such file or directory

I don’t understand since Ball.h is clearly in the same folder as can be seen from the Solution Explorer (attached)

What am I doing wrong?

Cannot openIncludeFileBall.h

Including headers for Unreal is… weird. I see that you are outside of the default Public/Private folder structure, maybe this could be the “issue”? Try being for specific with the includes.

#include "Pong/Ball.h"
1 Like