We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 5143

Summary: Linker errors on Windows when building with cmake and LIBC=ON
Product: SDL Reporter: Aaron Barany <akb825>
Component: *don't know*Assignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: sezeroz
Version: 2.0.12   
Hardware: x86_64   
OS: Windows 10   
Attachments: sdl-win-fix.patch

Description Aaron Barany 2020-05-17 04:33:18 UTC
Created attachment 4345 [details]
sdl-win-fix.patch

When building for Windows with CMake, and setting the option LIBC=ON, there are linker errors for the functions wcslcpy and wcslcat, since Windows doesn't have them. I have attached a patch to avoid setting the #defines in the config to state that they exist.
Comment 1 Ozkan Sezer 2020-12-27 03:03:10 UTC
This is fixed in SDL2-2.0.14