SDL2-2.0.3 setup

Hello

I am trying to set up SDL2-2.0.3 with Visual C++ 2010 express on windows 7 64 but when I test out a program it is giving me this error:

1>------ Build started: Project: testing, Configuration: Debug Win32 ------
1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib ‘msvcrt.lib’ conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

please advise------------------------
Follow the white rabbit…

you should try to build SDL with VS, errors like that usually are solved
once you know how the compiler and the libs works. That error means the
library was compiled with a different runtime library that the one you are
trying to use.

2014-10-05 18:58 GMT-06:00 Ral Marusparger :> Hello

I am trying to set up SDL2-2.0.3 with Visual C++ 2010 express on windows 7
64 but when I test out a program it is giving me this error:

1>------ Build started: Project: testing, Configuration: Debug Win32 ------
1>MSVCRTD.lib(cinitexe.obj) : warning LNK4098: defaultlib 'msvcrt.lib’
conflicts with use of other libs; use /NODEFAULTLIB:library
1>LINK : fatal error LNK1123: failure during conversion to COFF: file
invalid or corrupt
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

please advise


Follow the white rabbit…


SDL mailing list
SDL at lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


Javier Flores

I see, ok let me try that. thanks for the reply.------------------------
Follow the white rabbit…

Ok I reloaded the file for SDL2-2.0.3, then I went and found the 2010 solution for express edition and opened with visual C++ 2010 express, after that i set it to 64 bit release but that did not work so I redid it in 32 release and tried to build the SDL and SDL main but this is what I got…

after building SDL2:

1>------ Rebuild All started: Project: SDL2, Configuration: Release Win32 ------
1> SDL_windows.c
1> SDL_dynapi.c
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> Generating Code…
1> Compiling…
1> SDL_render_d3d11.c
1> SDL_render_d3d.c
1> SDL_render_gl.c
1> SDL_shaders_gl.c
1> SDL_d3dmath.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> Generating Code…
1> Compiling…
1> SDL_audiocvt.c
1> SDL_audiodev.c
1> SDL_audiotypecvt.c
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> Generating Code…
1> Compiling…
1> SDL_dummyaudio.c
1> SDL_directsound.c
1> SDL_dropevents.c
1> SDL_xaudio2.c
1> SDL_dxjoystick.c
1> SDL_error.c
1> SDL_events.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> Generating Code…
1> Compiling…
1> SDL_pixels.c
1> SDL_power.c
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_sysfilesystem.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_systls.c
1> Generating Code…
1> Compiling…
1> SDL_systimer.c
1> SDL_thread.c
1> SDL_timer.c
1> SDL_video.c
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> SDL_render_gles2.c
1> SDL_shaders_gles2.c
1> SDL_egl.c
1> Generating Code…
1> Compiling…
1> SDL_windowsopengles.c
1> Generating Code…
1> Creating library Win32\Release\SDL2.lib and object Win32\Release\SDL2.exp
1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========

after building SDLmain:

1>------ Build started: Project: SDL2main, Configuration: Release Win32 ------
1> SDL_windows_main.c
1> SDLmain_VS2010.vcxproj -> C:\SDL\VisualC\SDLmain\Win32\Release\SDL2main.lib
========== Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped ==========

looks like there might be errors. what did I do wrong?------------------------
Follow the white rabbit…