Description

Upon creating a new Synth Component C++ Class in Unreal 4.24, the compiler will fail to compile with a Linker error.

Steps to Reproduce

1. Open a new blank C++ Project in Unreal 4.24
2. Right click on your Content Browser->Add New C++ Class.
3. In the C++ Class Wizard, Select show all classes, Search and select SynthComponent
4. Create new Class.

Result: Compile Failed, Please see call stack for log.

Expected: Synth Component would compile successfully.

Callstack
CompilerResultsLog: Error: MySynthComponent.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: void __cdecl Audio::IOscBase::SetFrequency(float)" (__imp_?SetFrequency@IOscBase@Audio@@QEAAXM@Z) referenced in function "public: static void __cdecl UE4Function_Private::TFunctionRefCaller<class <lambda_ba8891f19d073dee9c7d8389d62 76b26>,void __cdecl(void)>::Call(void *)" (?Call@?$TFunctionRefCaller@V<lambda_ba8891f19d073dee9c7d8389d6276b26>@@$$A6AXXZ@UE4Function_Private@@SAXPEAX@Z) CompilerResultsLog: Error: MySynthComponentdfdf.cpp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: void __cdecl Audio::IOscBase::SetFrequency(float)" (__imp_?SetFrequency@IOscBase@Audio@@QEAAXM@Z) CompilerResultsLog: Error: MySynthComponent.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl Audio::FOsc::FOsc(void)" (__imp_??0FOsc@Audio@@QEAA@XZ) referenced in function "public: __cdecl UMySynthComponent::UMySynthComponent(class FObjectInitializer const &)" (??0UMySynthComponent@@QEAA@AEBVFObjectInitializer@@@Z) CompilerResultsLog: Error: MySynthComponentdfdf.cpp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl Audio::FOsc::FOsc(void)" (__imp_??0FOsc@Audio@@QEAA@XZ) CompilerResultsLog: Error: MySynthComponent.gen.cpp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl Audio::FOsc::FOsc(void)" (__imp_??0FOsc@Audio@@QEAA@XZ) CompilerResultsLog: Error: MySynthComponentdfdf.gen.cpp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: __cdecl Audio::FOsc::FOsc(void)" (__imp_??0FOsc@Audio@@QEAA@XZ) CompilerResultsLog: Error: MySynthComponent.cpp.obj : error LNK2019: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl Audio::FOsc::~FOsc(void)" (__imp_??1FOsc@Audio@@UEAA@XZ) referenced in function "public: virtual __cdecl UMySynthComponent::~UMySynthComponent(void)" (??1UMySynthComponent@@UEAA@XZ) CompilerResultsLog: Error: MySynthComponentdfdf.cpp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl Audio::FOsc::~FOsc(void)" (__imp_??1FOsc@Audio@@UEAA@XZ) CompilerResultsLog: Error: MySynthComponent.gen.cpp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl Audio::FOsc::~FOsc(void)" (__imp_??1FOsc@Audio@@UEAA@XZ) CompilerResultsLog: Error: MySynthComponentdfdf.gen.cpp.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: virtual __cdecl Audio::FOsc::~FOsc(void)" (__imp_??1FOsc@Audio@@UEAA@XZ) CompilerResultsLog: Error: C:\Users\Shaxon\Desktop\MyProject33\Binaries\Win64\UE4Editor-MyProject33-9842.dll : fatal error LNK1120: 3 unresolved externals

Have Comments or More Details?

There's no existing public thread on this issue, so head over toAnswerHub just mention UE-86056 in the post.

3
Login to Vote

Fixed
ComponentAudio
Affects Versions4.244.25
Target Fix4.25
Fix Commit10894948
Main Commit10894948
CreatedDec 19, 2019
ResolvedJan 7, 2020
UpdatedJan 14, 2020