Justin.Dooley:
Hi there Rama
I’ve encountered a small issue and I just don’t know why it’s happening. I’m migrating some of my code from blueprints to C++ and found that when I include RamaSaveComponent.h I get a bunch of errors. This is on UE4 4.17.2
RamaSaveUtility.h(53): error C2653: 'FPlatformFileManager': is not a class or namespace name
RamaSaveUtility.h(53): error C2653: 'FPlatformFileManager': is not a class or namespace name
RamaSaveUtility.h(53): error C2228: left of '.GetPlatformFile' must have class/struct/union
RamaSaveUtility.h(53): note: type is 'unknown-type'
RamaSaveUtility.h(53): error C2228: left of '.FileExists' must have class/struct/union
this repeats for a few lines but always involves FPlatformFileManager. I’ve added the dependency to the build .cs, and removing the include fixes the problem. I can go in and add the dependencies to the RamaSaveUtilities file but I don’t know why that would be necessary if it works without it in blueprints.
Thanks for any assistance you can provide and have a fantastic day!
I don’t have the code currently. When I use his component from C++ I just include the RamaSaveComponent.h and it works. Maybe it includes the Utility stuff as well. Might give it a shot.