Setting Up SDL2 with Visual Studio 2012 and 2013

This article has moved. Click here to view it. Remember to update your bookmarks!

Advertisements

5 thoughts on “Setting Up SDL2 with Visual Studio 2012 and 2013

  1. Johan Rex

    After doing a rebuild I get a linker warning:

    Warning 1 warning LNK4098: defaultlib ‘msvcrt.lib’ conflicts with use of other libs; use /NODEFAULTLIB:library C:\Temp\visual studio 2012\Projects\SDL_test\SDL_test\MSVCRTD.lib(cinitexe.obj) SDL_test

    Have you found a way to fix this?

    Reply
  2. MrPhil

    I ran into this using Visual Studio 2010 and found the answer here: http://wiki.libsdl.org/FAQWindows

    > When using Visual C++ I get link errors relating to MSVCRT.LIB or LIBC
    > SDL is dynamically linked with the multi-threaded version of the Microsoft Visual C runtime. You need to edit your project settings, go to the C++ language tab, change the listbox to “Code Generation” settings, and then change the runtime library to “Multi-threaded DLL”. Make sure you do this with all projects that you link into your application.

    Reply
  3. Pingback: Tutorial: Motor Gráfico 2D - Parte 1

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s