I have a SERIOUS problem on a module that i’m developing. I made a c++ class that derives from ‘USaveGame’ and everytime I try to compile, it says : unresolved external symbol error : ‘UUCHSave::UUCHSave(void)’ referenced in ‘UCppOptionsSave::UCppOptionsSave(void)’. Can anyone help me on this problem please?
Hi. Have you create a default constructor for your UUCHSave class? Also, did you make it public using macros [YOURMODULENAME]_API? (Replace [YOURMODULENAME] by the actual module name)
Could you give more details about UUCHSave and UCppOptionsSave classes please. It seems UCppOptionsSave object contains a subobject UUCHSave or inherited from it, but can not access a constructor of UUCHSave. It also might happen when UUCHSave and UCppOptionsSave belongs different modules and module which contains UCppOptionsSave have no reference to module with UUCHSave inside it’s build.cs script. If it can take place please check if your module’s with UCppOptionsSave build script adds a name of required module to the PrivateDependencyModuleNames array.
So, UCppOptionsSave is from the game module, UUCHSave is from another module, UCppOptionsSave inherits from UUCHsave, i tried to add the other module to my game’s .build.cs, still link errors…