Hi everyone!
I have a plugin that is working in one project, say Project A, i.e. i am able to compile and run the project with the plugin loaded. When compiling in VS, I will see the following in the output log.
2> Module.MyPlugin.cpp
2> Module.MyPlugin.gen.cpp
However, in another project, say Project B, where i copied my plugin into, I get the following when compiling in VS.
2> Module.MyPlugin.cpp
2> MyGame.cpp
2> MyPlugin.generated.2.cpp
2> MyPlugin.generated.1.cpp
2> MyGameGameModeBase.cpp
2> MyGame.generated.cpp
Right under these lines I will see
error C2275: 'FString': illegal use of this type as an expression
error C2065: 'Z_Param_Out_IdsToSpawn': undeclared identifier
error C3861: 'P_GET_TMAP_REF': identifier not found
These errors are pointing to the line where GENERATED_BODY() of the class that has the error.
The only issue that I could think of was that project A is using 4.17 while project B is using 4.16, but after switching engine version for project B, the same error shows up. Does anyone have any idea what could be the issue here?