Cannot open source file "TankAIController.h"

For anyone that started clicking the public option when you create the class and ran into an error where TankAIController.cpp cannot open it’s header, I found a simple solution.

Change #include “TankAIController.h” to #include “Public/TankAIController.h”

As you can see in the picture, when I changed them from the default to public, it placed the header and cpp in difference folders, causing the cpp file not to be able to “see” the header. By including the containing folder path before the header file, it could then find the necessary header and compile correctly.

Privacy & Terms