imgui failed to build with "error LNK2019: unresolved external symbol ImGuiContext_cdecl ImGui::CreateContext(struct ImFontAtlas *)" PAUIDirect3DDevice9@@@Z)" #8113
YarIchkaT
started this conversation in
Build/Link/Run/Fonts issues ONLY!
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Version/Branch of Dear ImGui:
Version last
Back-ends:
imgui_impl_win32.cpp + imgui_impl_dx9.cpp
Compiler, OS:
Win 10 + VS 2022
Full config/build information:
No response
Details:
My Issue/Question:
I've attached a screenshot of the error below, I'm trying to build, but I get about 25 errors.
Im use win62, but I made the project in 32 bits, Release x86
"error LNK2019: unresolved external symbol ImGuiContext_cdecl ImGui::CreateContext(struct ImFontAtlas *)" PAUIDirect3DDevice9@@@z)"
Error file gui.obj
I have two gui files, one cpp and one header, it complains about lines of code in the cpp file.
I will also attach below the lines of code that give errors.
I could skip this problem and build a finished project, but it’s not mine, and I want to create something of my own, I want to learn how to do something myself, that’s why I want to solve the problem.
Screenshots/Video:
Minimal, Complete and Verifiable Example code:
// log file
gui.cpp
Generating Code...
gui.obj : error LNK2019: unresolved external symbol "struct ImGuiContext * __cdecl ImGui::CreateContext(struct ImFontAtlas *)" (?CreateContext@ImGui@@YAPAUImGuiContext@@PAUImFontAtlas@@@z) referenced in function "void __cdecl gui::SetupMenu(struct IDirect3DDevice9 *)" (?SetupMenu@gui@@YAXPAUIDirect3DDevice9@@@z)
gui.obj : error LNK2019: unresolved external symbol "void __cdecl ImGui::DestroyContext(struct ImGuiContext *)" (?DestroyContext@ImGui@@YAXPAUImGuiContext@@@z) referenced in function "void __cdecl gui::Destroy(void)" (?Destroy@gui@@yaxxz)
gui.obj : error LNK2019: unresolved external symbol "void __cdecl ImGui::NewFrame(void)" (?NewFrame@ImGui@@yaxxz) referenced in function "void __cdecl gui::Render(void)" (?Render@gui@@yaxxz)
gui.obj : error LNK2019: unresolved external symbol "void __cdecl ImGui::EndFrame(void)" (?EndFrame@ImGui@@yaxxz) referenced in function "void __cdecl gui::Render(void)" (?Render@gui@@yaxxz)
gui.obj : error LNK2019: unresolved external symbol "void __cdecl ImGui::Render(void)" (?Render@ImGui@@yaxxz) referenced in function "void __cdecl gui::Render(void)" (?Render@gui@@yaxxz)
gui.obj : error LNK2019: unresolved external symbol "struct ImDrawData * __cdecl ImGui::GetDrawData(void)" (?GetDrawData@ImGui@@YAPAUImDrawData@@xz) referenced in function "void __cdecl gui::Render(void)" (?Render@gui@@yaxxz)
gui.obj : error LNK2019: unresolved external symbol "void __cdecl ImGui::StyleColorsDark(struct ImGuiStyle *)" (?StyleColorsDark@ImGui@@YAXPAUImGuiStyle@@@z) referenced in function "void __cdecl gui::SetupMenu(struct IDirect3DDevice9 *)" (?SetupMenu@gui@@YAXPAUIDirect3DDevice9@@@z)
gui.obj : error LNK2019: unresolved external symbol "bool __cdecl ImGui::Begin(char const *,bool *,int)" (?Begin@ImGui@@YA_NPBDPA_NH@Z) referenced in function "void __cdecl gui::Render(void)" (?Render@gui@@yaxxz)
gui.obj : error LNK2019: unresolved external symbol "void __cdecl ImGui::End(void)" (?End@ImGui@@yaxxz) referenced in function "void __cdecl gui::Render(void)" (?Render@gui@@yaxxz)
gui.obj : error LNK2019: unresolved external symbol "bool __cdecl ImGui_ImplWin32_Init(void *)" (?ImGui_ImplWin32_Init@@YA_NPAX@Z) referenced in function "void __cdecl gui::SetupMenu(struct IDirect3DDevice9 *)" (?SetupMenu@gui@@YAXPAUIDirect3DDevice9@@@z)
gui.obj : error LNK2019: unresolved external symbol "void __cdecl ImGui_ImplWin32_Shutdown(void)" (?ImGui_ImplWin32_Shutdown@@yaxxz) referenced in function "void __cdecl gui::Destroy(void)" (?Destroy@gui@@yaxxz)
gui.obj : error LNK2019: unresolved external symbol "void __cdecl ImGui_ImplWin32_NewFrame(void)" (?ImGui_ImplWin32_NewFrame@@yaxxz) referenced in function "void __cdecl gui::Render(void)" (?Render@gui@@yaxxz)
gui.obj : error LNK2019: unresolved external symbol "bool __cdecl ImGui_ImplDX9_Init(struct IDirect3DDevice9 *)" (?ImGui_ImplDX9_Init@@YA_NPAUIDirect3DDevice9@@@z) referenced in function "void __cdecl gui::SetupMenu(struct IDirect3DDevice9 *)" (?SetupMenu@gui@@YAXPAUIDirect3DDevice9@@@z)
gui.obj : error LNK2019: unresolved external symbol "void __cdecl ImGui_ImplDX9_Shutdown(void)" (?ImGui_ImplDX9_Shutdown@@yaxxz) referenced in function "void __cdecl gui::Destroy(void)" (?Destroy@gui@@yaxxz)
gui.obj : error LNK2019: unresolved external symbol "void __cdecl ImGui_ImplDX9_NewFrame(void)" (?ImGui_ImplDX9_NewFrame@@yaxxz) referenced in function "void __cdecl gui::Render(void)" (?Render@gui@@yaxxz)
gui.obj : error LNK2019: unresolved external symbol "void cdecl ImGui_ImplDX9_RenderDrawData(struct ImDrawData *)" (?ImGui_ImplDX9_RenderDrawData@@YAXPAUImDrawData@@@z) referenced in function "void cdecl gui::Render(void)" (?Render@gui@@yaxxz)
gui.obj : error LNK2019: unresolved external symbol "long cdecl ImGui_ImplWin32_WndProcHandler(struct HWND *,unsigned int,unsigned int,long)" (?ImGui_ImplWin32_WndProcHandler@@YAJPAUHWND@@iij@Z) referenced in function "long stdcall WindowProcess(struct HWND *,unsigned int,unsigned int,long)" (?WindowProcess@@YGJPAUHWND@@iij@Z)
Beta Was this translation helpful? Give feedback.
All reactions