SDLmain.lib unresolved external symbol

  • F03K
    9th Jun 2016 Member 0 Permalink

    "LNK2019 unresolved external symbol __ip___iob_funct referenced in function _ShowError"

    I've been looking this up, but most help I can find outside of TPT circles is for SDL2, and we aren't using that, right?

    I have zero experience with C++, but I want to mod this game to learn, since I don't like working from scratch.

     

    I followed the steps in the guide for VS TPT++ to the letter, with the exception of adding HAVE_STRUCT_TIMESPEC in the preprocessor args, and using VS2015. The latter apparently causes some issues with SDL, but I really can't figure out what to do about it. I could download 2013, but I already spent most of yesterday downloading this one. (My internet is slow)

     

    I saw this post, but I'm really too much of a newb to know what's what.

    https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=20541

    Most of the stuff that Stack Exchange page is telling me to do is causing errors, but I'm probably implementing it wrong.

     

    I also am quite sure that VS 2015 worked with that guide before. I've done this stuff previously.

     

    Could I get some help with this please?

    Edited once by F03K. Last: 9th Jun 2016
  • jacob2
    9th Jun 2016 Member 0 Permalink
    Hmm, I don't think tpt compiles in VS 2015, based on this and previous reports. Maybe it is something I can look into this weekend. Tpt doesn't use sdl2 (yet) so issues with that are going to be irrelevant.

    There is also this other guide: https://powdertoy.co.uk/Wiki/W/Compiling_for_Windows_with_scons.html . Except that one has issues too.

    Both seem to be caused by the libraries not being compiled with the newer compilers. Which is annoying because I shouldn't have to recompile them for every new version of something ... I recently recompiled all the visual studio libraries in 2013 to fix static compiles, but it looks like that didn't fix 2015.

  • F03K
    9th Jun 2016 Member 0 Permalink

    Okay, thanks for the help. :D (That was much faster than I expected)

     

    I'll get started on VS 2013, it's better than nothing.

     

     

     

    I also enjoyed reading your bio. While not particularly laughable, it was entertaining.

    Edited once by F03K. Last: 9th Jun 2016