Hello ![]()
I have a problem when I package one of my plugins in c++.
I can build it with Visual studio and live coding, then use my plugin without problem in editor/runtime.
But when I want to package my plugin when the module compiles, it tells me :
\Source\FileManagement\Private\FileManagementBPLibrary.cpp(27): error C2653: âFPlatformFileManagerâ: is not a class or namespace name
If Iâve understood correctly after searching on Internet, âFPlatformFileManagerâ doesnât seem to be included. But from what I found in the unreal doc Iâve already included it with #include âGenericPlatform/GenericPlatformFile.hâ and the âCoreâ module is included in my plugin module as well.
(IPlatformFile | Unreal Engine 5.2 Documentation)
Iâve tried include in .cpp or .h and both at the same time, but nothing works. ![]()
I also found a topic talking about this kind of problem.
(Error C2653: is not a class or namespace name (or: non UClass class))
The problem was on UE4 in 2014 and a solution was to add this kind of line in the [project].Build.cs .
PrivateIncludePaths.Add("MyProjectFolder/Headers");
I donât know if this is really a good way to solve this problem? If so, I didnât quite understand where to put the line in the [project].Build.cs and the exact content, which must be between " ".
Iâm rather new to C++
, so thanks for any help in advance ![]()