Build fix for wxGTK/Win (PR #26336)

13 views
Skip to first unread message

stahta01

unread,
Apr 1, 2026, 8:18:48 PM (2 days ago) Apr 1
to wx-...@googlegroups.com, Subscribed

Build command
mkdir -p cmake_build-gtk3_ucrt64-shared_unicode cmake \ -DwxBUILD_TOOLKIT="gtk3" \ -S . \ -B cmake_build-gtk3_ucrt64-shared_unicode cmake --build cmake_build-gtk3_ucrt64-shared_unicode

error
[932/1153] Linking CXX shared library lib\gcc_x64_dll\wxgtk3333ud_core_gcc_x64_custom.dll FAILED: [code=1] lib/gcc_x64_dll/wxgtk3333ud_core_gcc_x64_custom.dll lib/gcc_x64_dll/libwxgtk333ud_core.a C:\WINDOWS\system32\cmd.exe /C "cd . && C:\msys64\ucrt64\bin\c++.exe -g -shared -o lib\gcc_x64_dll\wxgtk3333ud_core_gcc_x64_custom.dll -Wl,--out-implib,lib\gcc_x64_dll\libwxgtk333ud_core.a -Wl,--major-image-version,3,--minor-image-version,0 @CMakeFiles\wxcore.rsp && cd ." C:/msys64/ucrt64/bin/../lib/gcc/x86_64-w64-mingw32/15.2.0/../../../../x86_64-w64-mingw32/bin/ld.exe: libs/core/CMakeFiles/wxcore.dir/__/__/__/__/src/msw/utilswin.cpp.obj: in functionwxMoveToTrash(wxString const&)':
C:/devel/repos/wxwidgets_libs/wxWidgets/src/msw/utilswin.cpp:184: multiple definition of wxMoveToTrash(wxString const&)'; libs/core/CMakeFiles/wxcore.dir/__/__/__/__/src/gtk/utilsgtk.cpp.obj:C:/devel/repos/wxwidgets_libs/wxWidgets/src/gtk/utilsgtk.cpp:344: first defined here


You can view, comment on, or merge this pull request online at:

  https://github.com/wxWidgets/wxWidgets/pull/26336

Commit Summary

File Changes

(1 file)

Patch Links:


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26336@github.com>

stahta01

unread,
Apr 1, 2026, 8:20:25 PM (2 days ago) Apr 1
to wx-...@googlegroups.com, Subscribed
stahta01 left a comment (wxWidgets/wxWidgets#26336)

There were two places and I had to pick one to comment out this one made the most sense to me.


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26336/c4173724678@github.com>

VZ

unread,
Apr 2, 2026, 4:54:34 PM (yesterday) Apr 2
to wx-...@googlegroups.com, Subscribed
vadz left a comment (wxWidgets/wxWidgets#26336)

Looks good to me, thanks! We really need to have a CI job building wxGTK under Windows to not let it break again in the future...

cc @Blake-Madden just FYI


Reply to this email directly, view it on GitHub, or unsubscribe.

You are receiving this because you are subscribed to this thread.Message ID: <wxWidgets/wxWidgets/pull/26336/c4180421777@github.com>

Reply all
Reply to author
Forward
0 new messages