I have a dxtk12 project that I worked on earlier. Currently I am using another Windows architecture - x64 and version of VS - 2019 (earlier - x86 and vs2017).
I tried to compile my project for x64 release but got linker errors:
1>DeviceResources.obj : error LNK2001: unresolved external symbol D3D12CreateDevice
1>DeviceResources.obj : error LNK2001: unresolved external symbol CreateDXGIFactory2
1>DirectXTK12.lib(SpriteBatch.obj) : error LNK2001: unresolved external symbol D3D12SerializeRootSignature
1>DirectXTK12.lib(ResourceUploadBatch.obj) : error LNK2001: unresolved external symbol D3D12SerializeRootSignature
1>DirectXTK12.lib(EffectCommon.obj) : error LNK2001: unresolved external symbol D3D12SerializeRootSignature
1>C:\Users\okuma\Downloads\Telegram Desktop\Visual Studio 2015\Projects\simulation\x64\Release\simulation.exe : fatal error LNK1120: 3 unresolved externals
When I switch build option to x86 release all compiled successfully.
I tried to add #pragma comment(lib, "RuntimeObject.lib")
, it didn't help.
What am I doing wrong?