-
-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ImGui::ShowFontAtlas is not exported #4171
Comments
Does adding IMGUI_API to both forward declarations fixes it? (There’s one in imgui.cpp and one in imgui_demo.cpp)
If so, could you make a PR for it? Thank you!
|
Or, it could be that you are not linking with imgui_demo at all, i’d be interested to know if that’s the case. |
|
This is not something we normally support this way, as there’s a dedicated define for it. I’d be tempted to enforce that to ensure people keep at least the source file on disk, but I understand being a new restriction it may need to be reworked. |
Pushed a fix with 3a941f9 Changelog says |
Thanks, that fixed the problem. I didn't link to |
Version: 1.83
Branch: master
Back-ends: ImGui-SFML
Compiler: MSVC 14
OS: Windows 10
After c708299 I got the following linking problem:
imgui.cpp.obj : error LNK2019: unresolved external symbol "void __cdecl ImGui::ShowFontAtlas(struct ImFontAtlas *)" (?ShowFontAtlas@ImGui@@YAXPEAUImFontAtlas@@@Z) referenced in function "void __cdecl ImGui::ShowMetricsWindow(bool *)" (?ShowMetricsWindow@ImGui@@YAXPEA_N@Z)
My understanding is that
ShowFontAtlas
is not exported, but gets called inShowMetricsWindow
and doesn't get inlined, that's why we get a linking error.I guess that
IMGUI_API
should get added to it or it should be a static function which will only be used in imgui.cpp.The text was updated successfully, but these errors were encountered: