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 1656

Summary: windows timer compilation failure
Product: SDL Reporter: Vittorio Giovara <vitto.giova>
Component: timerAssignee: Sam Lantinga <slouken>
Status: RESOLVED WORKSFORME QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: aschiffler
Version: HG 2.0   
Hardware: x86   
OS: Windows 7   

Description Vittorio Giovara 2012-12-04 03:14:08 UTC
Compiling SDL from HG with Visual Studio 2010 results in an include error: mextraystem not found.

I fixed this by using the mmsystem.h header instead, but I don't know if this solution will work on older windows versions.
Comment 1 Andreas Schiffler 2013-03-13 11:43:08 UTC
Closing as no repro.

Compiling in VS2010 from SDL\VisualC\SDL_VS2010.sln using "Rebuild Solution" succeeds.

1>------ Rebuild All started: Project: SDL2, Configuration: Debug Win32 ------
2>------ Rebuild All started: Project: SDL2main, Configuration: Debug Win32 ------
2>  SDL_windows_main.c
1>  SDL_windows.c
2>  SDLmain_VS2010.vcxproj -> I:\Sources\SDL\VisualC\SDLmain\Win32\Debug\SDL2main.lib
1>  SDL_clipboardevents.c
1>  SDL_gesture.c
1>  SDL_touch.c
1>  e_atan2.c
1>  e_log.c
1>  e_pow.c
1>  e_rem_pio2.c
1>  e_sqrt.c
1>  k_cos.c
1>  k_rem_pio2.c
1>  k_sin.c
1>  s_atan.c
1>  s_copysign.c
1>  s_cos.c
1>  s_fabs.c
1>  s_floor.c
1>  s_scalbn.c
1>  s_sin.c
1>  SDL_render_d3d.c
1>  Generating Code...
1>  Compiling...
1>  SDL_render_gl.c
1>  SDL_shaders_gl.c
1>  SDL_render.c
1>  SDL_yuv_mmx.c
1>  SDL_yuv_sw.c
1>  SDL_blendfillrect.c
1>  SDL_blendline.c
1>  SDL_blendpoint.c
1>  SDL_drawline.c
1>  SDL_drawpoint.c
1>  SDL_render_sw.c
1>  SDL_rotate.c
1>  SDL.c
1>  SDL_assert.c
1>  SDL_atomic.c
1>  SDL_spinlock.c
1>  SDL_audio.c
1>  SDL_audiocvt.c
1>  SDL_audiodev.c
1>  SDL_audiotypecvt.c
1>  Generating Code...
1>  Compiling...
1>  SDL_hints.c
1>  SDL_log.c
1>  SDL_nullframebuffer.c
1>  SDL_blit.c
1>  SDL_blit_0.c
1>  SDL_blit_1.c
1>  SDL_blit_A.c
1>  SDL_blit_auto.c
1>  SDL_blit_copy.c
1>  SDL_blit_N.c
1>  SDL_blit_slow.c
1>  SDL_bmp.c
1>  SDL_cpuinfo.c
1>  SDL_clipboard.c
1>  SDL_shape.c
1>  SDL_winmm.c
1>  SDL_diskaudio.c
1>  SDL_dummyaudio.c
1>  SDL_directsound.c
1>  SDL_dropevents.c
1>  Generating Code...
1>  Compiling...
1>  SDL_xaudio2.c
1>  SDL_dxjoystick.c
1>  SDL_error.c
1>  SDL_events.c
1>  SDL_fatal.c
1>  SDL_fillrect.c
1>  SDL_getenv.c
1>  SDL_haptic.c
1>  SDL_iconv.c
1>  SDL_joystick.c
1>  SDL_gamecontroller.c
1>  SDL_keyboard.c
1>  SDL_malloc.c
1>  SDL_mixer.c
1>  SDL_mmjoystick.c
1>  SDL_mouse.c
1>  SDL_nullevents.c
1>  SDL_nullvideo.c
1>  SDL_pixels.c
1>  SDL_power.c
1>  Generating Code...
1>  Compiling...
1>  SDL_qsort.c
1>  SDL_quit.c
1>  SDL_rect.c
1>  SDL_RLEaccel.c
1>  SDL_rwops.c
1>  SDL_stdlib.c
1>  SDL_stretch.c
1>  SDL_string.c
1>  SDL_surface.c
1>  SDL_syscond.c
1>  SDL_syshaptic.c
1>  SDL_sysloadso.c
1>  SDL_sysmutex.c
1>  SDL_syspower.c
1>  SDL_syssem.c
1>  SDL_systhread.c
1>  SDL_systimer.c
1>  SDL_thread.c
1>  SDL_timer.c
1>  SDL_video.c
1>  Generating Code...
1>  Compiling...
1>  SDL_wave.c
1>  SDL_windowsclipboard.c
1>  SDL_windowsevents.c
1>  SDL_windowsframebuffer.c
1>  SDL_windowskeyboard.c
1>  SDL_windowsmessagebox.c
1>  SDL_windowsmodes.c
1>  SDL_windowsmouse.c
1>  SDL_windowsopengl.c
1>  SDL_windowsshape.c
1>  SDL_windowsvideo.c
1>  SDL_windowswindow.c
1>  SDL_windowevents.c
1>  Generating Code...
1>     Creating library Win32\Debug\SDL2.lib and object Win32\Debug\SDL2.exp
1>  SDL_VS2010.vcxproj -> I:\Sources\SDL\VisualC\SDL\Win32\Debug\SDL2.dll
3>------ Rebuild All started: Project: SDL2test, Configuration: Debug Win32 ------
4>------ Rebuild All started: Project: testshape, Configuration: Debug Win32 ------
5>------ Rebuild All started: Project: testpower, Configuration: Debug Win32 ------
6>------ Rebuild All started: Project: testfile, Configuration: Debug Win32 ------
3>  SDL_test_assert.c
7>------ Rebuild All started: Project: testplatform, Configuration: Debug Win32 ------
8>------ Rebuild All started: Project: loopwave, Configuration: Debug Win32 ------
3>  SDL_test_common.c
9>------ Rebuild All started: Project: checkkeys, Configuration: Debug Win32 ------
3>  SDL_test_crc32.c
5>  testpower.c
6>  testfile.c
3>  SDL_test_font.c
4>  testshape.c
7>  testplatform.c
3>  SDL_test_fuzzer.c
9>  checkkeys.c
8>  Loopwave.c
3>  SDL_test_harness.c
3>  SDL_test_log.c
3>  SDL_test_md5.c
3>  SDL_test_random.c
3>  SDL_test_imageBlit.c
3>  SDL_test_imageBlitBlend.c
3>  SDL_test_imageFace.c
4>  testshape_VS2010.vcxproj -> I:\Sources\SDL\VisualC\tests\testshape\Win32\Debug\testshape.exe
6>  testfile_VS2010.vcxproj -> I:\Sources\SDL\VisualC\tests\testfile\Win32\Debug\testfile.exe
3>  SDL_test_imagePrimitives.c
5>  testpower_VS2010.vcxproj -> I:\Sources\SDL\VisualC\tests\testpower\Win32\Debug\testpower.exe
6>          1 file(s) copied.
4>          1 file(s) copied.
7>  testplatform_VS2010.vcxproj -> I:\Sources\SDL\VisualC\tests\testplatform\Win32\Debug\testplatform.exe
5>          1 file(s) copied.
3>  SDL_test_imagePrimitivesBlend.c
7>          1 file(s) copied.
9>  checkkeys_VS2010.vcxproj -> I:\Sources\SDL\VisualC\tests\checkkeys\Win32\Debug\checkkeys.exe
3>  SDL_test_compare.c
9>          1 file(s) copied.
8>  loopwave_VS2010.vcxproj -> I:\Sources\SDL\VisualC\tests\loopwave\Win32\Debug\loopwave.exe
8>          1 file(s) copied.
3>  Generating Code...
3>  SDLtest_VS2010.vcxproj -> I:\Sources\SDL\VisualC\SDLtest\Win32\Debug\SDL2test.lib
10>------ Rebuild All started: Project: testdraw2, Configuration: Debug Win32 ------
11>------ Rebuild All started: Project: testsprite2, Configuration: Debug Win32 ------
12>------ Rebuild All started: Project: testgl2, Configuration: Debug Win32 ------
13>------ Rebuild All started: Project: testautomation, Configuration: Debug Win32 ------
12>  testgl2.c
11>  testsprite2.c
13>  testautomation_timer.c
10>  testdraw2.c
13>  testautomation_mouse.c
13>  testautomation_sdltest.c
13>  testautomation_syswm.c
13>  testautomation_video.c
13>  testautomation_keyboard.c
11>  testsprite2_VS2010.vcxproj -> I:\Sources\SDL\VisualC\tests\testsprite2\Win32\Debug\testsprite2.exe
11>          1 file(s) copied.
11>          1 file(s) copied.
13>  testautomation_events.c
10>  testdraw2_VS2010.vcxproj -> I:\Sources\SDL\VisualC\tests\testdraw2\Win32\Debug\testdraw2.exe
10>          1 file(s) copied.
13>  testautomation_surface.c
12>  testgl2_VS2010.vcxproj -> I:\Sources\SDL\VisualC\tests\testgl2\Win32\Debug\testgl2.exe
12>          1 file(s) copied.
13>  testautomation_rwops.c
13>  testautomation_render.c
13>  testautomation_rect.c
13>  testautomation_platform.c
13>  testautomation_main.c
13>  testautomation_clipboard.c
13>  testautomation_audio.c
13>  testautomation.c
13>  Generating Code...
13>  testautomation_vs2010.vcxproj -> I:\Sources\SDL\VisualC\tests\testautomation\Win32\Debug\testautomation.exe
13>          1 file(s) copied.
========== Rebuild All: 13 succeeded, 0 failed, 0 skipped ==========