Skip to content

Fix build errors against wxWidgets 3.3 - #1055

Merged
cjcliffe merged 1 commit into
cjcliffe:masterfrom
aliaga17:fix/wxwidgets-3.3-build
Sep 2, 2026
Merged

cjcliffe merged 1 commit into
cjcliffe:masterfrom
aliaga17:fix/wxwidgets-3.3-build

Conversation

@aliaga17

Copy link
Copy Markdown
Contributor

Problem

CubicSDR fails to compile against wxWidgets 3.3 (current Homebrew release on macOS). Newer wxWidgets removes implicit conversions that older releases tolerated:

  • wxT() literals no longer concatenate with std::string / std::wstring operands (AppFrame.cpp, BookmarkView.cpp)
  • std::wstring no longer streams into std::cout implicitly (SessionMgr.cpp, GLFont.cpp)

Fix

Wrap the affected concatenations in explicit wxString constructors and convert wide strings before streaming to stdout. No functional changes; labels and log output are identical.

Testing

Builds and runs cleanly on macOS (arm64) against Homebrew wxWidgets 3.3; menu labels, bookmark dialogs, and session/font log lines render as before.

🤖 Generated with Claude Code

Newer wxWidgets removes implicit conversions that older releases
tolerated:

- wxT() string literals no longer concatenate with std::string /
  std::wstring operands; wrap both sides in explicit wxString
  constructors (AppFrame, BookmarkView).
- std::wstring no longer streams into std::cout implicitly; convert
  to std::string for log output (SessionMgr, GLFont).

No functional changes, output and labels are identical.
@cjcliffe
cjcliffe self-requested a review September 2, 2026 01:26
@cjcliffe

cjcliffe commented Sep 2, 2026

Copy link
Copy Markdown
Owner

Looks good and still compiles with older wxWidgets -- thanks

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.

2 participants