Compilation error, the source code in the plugin calls the main project file and reports an error。

LittleTimeWxk
Thu, 02 Sep 2021 05:35:31 +0000
C++

Working environment：
Windows、Visual Studio 2019

Premise description：
I created a UE4 C++ project and downloaded the AirSim plugin from github and added it to my own C++ project. I solved the problem of calling the plug-in source code from the main project, but when I modify the source code in the plug-in, I need to import the custom C++ class file in the main project and keep getting an error.
ERROR MESSAGE " fatal error C1083: cannot open include file: “xxxx.generated.h”: No such file or directory."

I have tried many methods on the Internet, such as adding an include directory in the project properties, but it still has no effect. I still think there is a problem with the way the main project file is referenced in the plug-in, but I don't know how to deal with this problem.

Remark:
My directory structure conforms to the specification, and the plug-in is placed in the Plugins folder！

2 posts - 1 participant