Help with linking. Quite new at c++. #9326
KipDotJpg
started this conversation in
New Users Build/Link/Run issues ONLY!
Replies: 1 comment 2 replies
-
|
What build system are you using? Libraries eg Dx11 needs a specific .lib file linked into your project, eg d3d11.lib for Dx11. If you google for the terms you are discussing here you will find references. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm having difficulty figuring out how to resolve linking errors. The error code is:
1>imgui_impl_dx12.obj : error LNK2019: unresolved external symbol _CreateDXGIFactory1@8 referenced in function "bool _cdecl ImGui_ImplDX12_CreateDeviceObjects(void)" (?ImGui_ImplDX12_CreateDeviceObjects@@YA_NXZ)
1>main.obj : error LNK2001: unresolved external symbol CreateDXGIFactory1@8
1>main.obj : error LNK2019: unresolved external symbol D3D12CreateDevice@16 referenced in function "bool cdecl CreateDeviceD3D(struct HWND *)" (?CreateDeviceD3D@@YA_NPAUHWND@@@z)
1>main.obj : error LNK2019: unresolved external symbol D3D12GetDebugInterface@8 referenced in function "bool cdecl CreateDeviceD3D(struct HWND *)" (?CreateDeviceD3D@@YA_NPAUHWND@@@z)
1>main.obj : error LNK2019: unresolved external symbol _DXGIGetDebugInterface1@12 referenced in function "void __cdecl CleanupDeviceD3D(void)" (?CleanupDeviceD3D@@yaxxz)
I am not familiar with linking as a concept, and I would appreciate any help with understanding what I'm supposed to do and what it means. Thanks.
I know any help will need more information, I'm just not sure what to provide.
Edit:
I have since changed to dx12 to attempt to fix some issues, but I am having a very similar issue thus far.
Beta Was this translation helpful? Give feedback.
All reactions