SDL/src
Sam Lantinga 8b0660b25a Fixed bug 4918 - SDL failed to build due to error LNK2019: unresolved external symbol memset referenced in function SDL_SetJoystickIDForPlayerIndex with MSVC x64 on Windows
LinGao

We build SDL with Visual studio 2017 compiler on Windows Server 2016, but it failed to build due to error LNK2019: unresolved external symbol memset referenced in function SDL_SetJoystickIDForPlayerIndex with MSVC x64 on Windows on latest default branch. And we found that it can be first reproduced on 0fff06175109 changeset. Could you please help have a look about this issue? Thanks in advance!

Steps to Reproduce:
1.hg clone https://hg.libsdl.org/SDL D:\SDL\src
2.Open a VS 2017 x64 command prompt as admin and browse to D:\SDL
3.msbuild /p:Configuration=Release /p:Platform=x64 /p:WindowsTargetPlatformVersion=10.0.17134.0 VisualC\SDL.sln /t:Rebuild

Actual result:
 Creating library D:\SDL\src\VisualC\x64\Release\SDL2.lib and object D:\SDL\src\VisualC\x64\Release\SDL2.exp
SDL_joystick.obj : error LNK2019: unresolved external symbol memset referenced in function SDL_SetJoystickIDForPlayerIndex [D:\SDL\src\VisualC\SDL\SDL.vcxproj]
D:\SDL\src\VisualC\x64\Release\SDL2.dll : fatal error LNK1120: 1 unresolved externals [D:\SDL\src\VisualC\SDL\SDL.vcxproj]
Done Building Project "D:\SDL\src\VisualC\SDL\SDL.vcxproj" (Rebuild target(s)) -- FAILED.
2019-12-30 13:18:57 -08:00
..
atomic atomic: Support compiling on ARMv3 2019-10-11 22:08:53 +01:00
audio pulseaudio: don't let FlushCapture get stuck in an infinite loop on shutdown. 2019-12-03 03:53:06 -05:00
core Android: same way as in nativePause(), resume events are sent from SDL thread 2019-12-21 22:40:33 +01:00
cpuinfo Fixed unused function warning on Android 2019-11-18 10:48:14 -08:00
dynapi Fixed bug 4914 - Expose SDL_ScaleMode and add SDL_SetTextureScaleMode/SDL_GetTextureScaleMode 2019-12-22 13:39:44 -08:00
events Fixed bug 4814 - Missing scancodes on Linux 2019-11-16 22:45:49 -08:00
file Readability: remove redundant cast to the same type 2019-10-30 15:13:55 +01:00
filesystem Readability: remove redundant cast to the same type 2019-10-30 15:13:55 +01:00
haptic Fixed bug 4910 - Missing joystick-driver type check in haptic 2019-12-22 13:56:50 -08:00
hidapi Removed unnecessary setlocale() on Mac 2019-12-30 11:09:03 -08:00
joystick Fixed bug 4918 - SDL failed to build due to error LNK2019: unresolved external symbol memset referenced in function SDL_SetJoystickIDForPlayerIndex with MSVC x64 on Windows 2019-12-30 13:18:57 -08:00
libm Readability: change some pointer parameter to be pointer to const 2019-10-30 16:06:51 +01:00
loadso Readability: remove redundant cast 2019-10-30 16:20:58 +01:00
main haiku: mouse_relative fix 2019-11-11 22:23:33 -05:00
power SDL_syspower.c: remove redundant expression 2019-10-30 16:12:39 +01:00
render Fix build error in SDL_render_metal.m (bug #4916.) 2019-12-23 19:55:10 +03:00
sensor Fixed bug 4837 - Use after free in SDL_SensorUpdate (Thanks!) 2019-10-23 08:46:59 +02:00
stdlib Improved XInput VID/PID detection and added SDL_wcsstr() and SDL_wcsncmp() 2019-11-20 16:42:50 -08:00
test Added SDL_PIXELFORMAT_BGR444 2019-11-02 22:58:52 +00:00
thread Remove redundant 'SDL_GetErrBuf' declaration 2019-10-30 17:35:40 +01:00
timer Updated copyright for 2019 2019-01-04 22:01:14 -08:00
video SDL_x11events.c (X11_DispatchEvent): remove FIXME and use SDL_strtokr(). 2019-12-27 23:01:10 +03:00
SDL.c SDL.c (SDL_ExitProcess): unconstify its param to match its declaration. 2019-11-20 02:47:40 +03:00
SDL_assert.c Readability: remove const-qualifation from function declaration 2019-10-30 15:43:49 +01:00
SDL_assert_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_dataqueue.c Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_dataqueue.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_error.c Remove redundant 'SDL_GetErrBuf' declaration 2019-10-30 17:35:40 +01:00
SDL_error_c.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_hints.c Fix missing prototype warning 2019-11-16 22:59:56 +01:00
SDL_hints_c.h Added a utility function to simplify the hint handling logic 2019-11-13 21:53:01 -08:00
SDL_internal.h Updated copyright for 2019 2019-01-04 22:01:14 -08:00
SDL_log.c Copypaste SDL_NSLog to UIKit backend, document it as such 2019-07-17 23:20:57 -04:00