Skip to content

Fix symbol export/import on windows#335

Merged
lapinozz merged 4 commits intoSFML:masterfrom
lapinozz:master
Apr 4, 2026
Merged

Fix symbol export/import on windows#335
lapinozz merged 4 commits intoSFML:masterfrom
lapinozz:master

Conversation

@lapinozz
Copy link
Copy Markdown
Contributor

Fixed the DLLs macros so the shared build would work with MSVC

IMGUI_SFML_SHARED_LIB should be defined public in shared build, so that when you link against the lib you get dll import
IMGUI_SFML_EXPORTS is defined private so that the lib itself compiles with the dll export

IMGUI_API and IMGUI_SFML_API should both be the same since the source for both is compiled directly into the lib so I simplified the code and defined IMGUI_API as IMGUI_SFML_API

Comment thread CMakeLists.txt Outdated
Comment thread imgui-SFML_export.h
Comment thread imgui-SFML_export.h
Comment thread CMakeLists.txt
@lapinozz lapinozz merged commit 4928708 into SFML:master Apr 4, 2026
49 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants