Hi Guys,
Creating a new C++ class via the editor which is based on a DirectionalLight fails with:
CompilerResultsLog:Error: Error MovingSun.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl ADirectionalLight::PostLoad(void)” (?PostLoad@ADirectionalLight@@UEAAXXZ)
CompilerResultsLog:Error: Error XXXXXXXX.generated.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl ADirectionalLight::PostLoad(void)” (?PostLoad@ADirectionalLight@@UEAAXXZ)
CompilerResultsLog:Error: Error MovingSun.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl ADirectionalLight::LoadedFromAnotherClass(class FName const &)” (?LoadedFromAnotherClass@ADirectionalLight@@UEAAXAEBVFName@@@Z)
CompilerResultsLog:Error: Error XXXXXXX.generated.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl ADirectionalLight::LoadedFromAnotherClass(class FName const &)” (?LoadedFromAnotherClass@ADirectionalLight@@UEAAXAEBVFName@@@Z)
CompilerResultsLog:Error: Error MovingSun.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl ADirectionalLight::PostEditChangeProperty(struct FPropertyChangedEvent &)” (?PostEditChangeProperty@ADirectionalLight@@UEAAXAEAUFPropertyChangedEvent@@@Z)
CompilerResultsLog:Error: Error XXXXXXXX.generated.cpp.obj : error LNK2001: unresolved external symbol “public: virtual void __cdecl ADirectionalLight::PostEditChangeProperty(struct FPropertyChangedEvent &)” (?PostEditChangeProperty@ADirectionalLight@@UEAAXAEAUFPropertyChangedEvent@@@Z)
CompilerResultsLog:Error: Error C:\Users\tommybear\Dropbox\UE4Projects\XXXXXXX\Binaries\Win64\UE4Editor-XXXXXXXX-3358.dll : fatal error LNK1120: 3 unresolved externals
Steps to reproduce:
- Create new C++ project in 4.11.1
- Right click in content browser and add a c++ class
- In the the base class selection window, click “Show all classes”
- Search for DirectionalLight, select it and click next
- Name is MovingSun and click create
- Observe the link error
Tommy.