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 - Linker errors on Windows when building with cmake and LIBC=ON
Summary: Linker errors on Windows when building with cmake and LIBC=ON
Status: RESOLVED FIXED
Alias: None
Product: SDL
Classification: Unclassified
Component: *don't know* (show other bugs)
Version: 2.0.12
Hardware: x86_64 Windows 10
: P2 normal
Assignee: Ryan C. Gordon
QA Contact: Sam Lantinga
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-05-17 04:33 UTC by Aaron Barany
Modified: 2020-12-27 03:03 UTC (History)
1 user (show)

See Also:


Attachments
sdl-win-fix.patch (586 bytes, patch)
2020-05-17 04:33 UTC, Aaron Barany
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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