SDL linker error in Visual Studio 2010

  • ChemGuy
    13th Aug 2016 Member 0 Permalink

    I have the old 2010 version of Visual Studio Express on my computer and recently tried compiling the vanilla source. Unfortunately, I keep on getting LNK2019 error related with the SDLmain.lib. I've included all libraries in the project, following the guidelines in the tutorial on the wiki.

    This is strange, as I clearly remember it compiling without a problem on this specific version and on the very same computer some time ago. Is there anything I could do to attempt to fix this, apart from installing a different version of Visual Studio?

  • jacob2
    13th Aug 2016 Member 2 Permalink
    We only support vs2013 right now. I compiled all the libraries in that version. It might be erroring because sdl was compiled with a newer compiler or something.

    I'm unsure if the predone vs2013 project would work in 2010. The guide itself probably would ... If you had the old libraries from when we supported vs2010.

    There is no guarantee it would compile in 2010 either, that is very old. You might get working libraries just to find that it errors on min/max.

    I suggest getting vs2013. Note that 2015 doesn't work at the moment but I will fix it sometime.
  • ChemGuy
    13th Aug 2016 Member 0 Permalink

    Thanks for the reply.

    I have tried using the VS2013 premade project, to no success. What's left is getting the 2013 version, I guess.

  • jacob1
    15th Aug 2016 Developer 0 Permalink
    @ChemGuy (View Post)
    What were the errors? There are probably some new files like Favorite.cpp that need to be added to the solution to make it work.
  • User_158829
    15th Aug 2016 Banned 0 Permalink
    This post is hidden because the user is banned