Other compilation error is the message that’s displayed. I have other similar classes in the same project that work fine and without a more informative error message I’m having trouble nailing down the issue with this one.
If you go to the Output window in Visual Studio it should give a bit more information to what the compilation error is. Could you post the results from the Output log when the build fails and you receive that message?
Your post seems to be from the Error List rather than the Output tab of Visual Studio. If this is the case can you make sure you are on the Output tab and let me know what it says? Currently my best guess as to what may be causing the problem would be to make sure that the function is declared inside a “public:” section of your class header.
Using BlueprintCallable along with a Category is what allows the function to be called inside of blueprints. If you are not using the function in blueprints then the UFUNCTION() macro is not necessary. If you are using the function in blueprints and are still getting the “Other Compilation Errors” message then please include the information from the Output Tab in Visual Studio after a failed compile to give a better idea of what the exact error is.
Can you post what the Output log in Visual Studio says the Other Compilation Error is? This will help point to what needs to be changed for the code to compile properly.
1>C:\Users\PorterN3\Documents\Unreal Protype\Prototype3\Prototype2\Source\Prototype2\Private\PlayerClass.cpp(15): error C2511: ‘void UPlayerClass::ImportPic_Implementation(FString)’ : overloaded member function not found in ‘UPlayerClass’
1> C:\Users\PorterN3\Documents\Unreal Protype\Prototype3\Prototype2\Source\Prototype2\Public\PlayerClass.h(10) : see declaration of ‘UPlayerClass’
1>C:\Users\PorterN3\Documents\Unreal Protype\Prototype3\Prototype2\Intermediate\Build\Win64\UE4Editor\Inc\Prototype2\Prototype2.generated.cpp(13): error C2511: ‘void UPlayerClass::ImportPic(const FString &)’ : overloaded member function not found in ‘UPlayerClass’
1> C:\Users\PorterN3\Documents\Unreal Protype\Prototype3\Prototype2\Source\Prototype2\Public/PlayerClass.h(10) : see declaration of ‘UPlayerClass’
1>C:\Users\PorterN3\Documents\Unreal Protype\Prototype3\Prototype2\Intermediate\Build\Win64\UE4Editor\Inc\Prototype2\Prototype2.generated.cpp(16): error C2352: ‘UObject::FindFunctionChecked’ : illegal call of non-static member function
1> c:\program files\epic games\4.8\engine\source\runtime\coreuobject\public\uobject\UObject.h(753) : see declaration of ‘UObject::FindFunctionChecked’
Based on the error message it is most likely that you are attempting to override a function (PlayerClass::ImportPic) that is not marked as virtual in its parent class or the signature of your override function does not match the signature of the parent function.