error when compiling with visual studio

  • suzukn
    5th Jun 2018 Member 0 Permalink

    Hi i followed this tutorial https://powdertoy.co.uk/Wiki/W/Compiling_tpt%2B%2B_with_Visual_studio.html

    as it couldn't get the scons one to work. I was just trying to compile the source code without altering it to test if it works but i get these errors:

    https://pastebin.com/62eeY8fk

    I don't know what i have done wrong and i have used both the premade project and manual setup following the steps carefully. 

    Edited 2 times by suzukn. Last: 5th Jun 2018
  • jacob2
    5th Jun 2018 Member 0 Permalink
    I haven't updated the guide ever since upgrading to sdl2. When I have time I'll update the guide, for now you'll need to edit the project configuration to use sdl2 instead of sdl
  • suzukn
    6th Jun 2018 Member 0 Permalink

    @jacob2 (View Post)

     now i get this error:

    https://pastebin.com/GDfhfg3L

     

    I'm not sure what i'm doing wrong

  • jacob1
    6th Jun 2018 Developer 0 Permalink
    @suzukn (View Post)
    Did you run generator.py?

    Also I just checked some of the settings I used, these are the libraries that need to be included under linker -> input, if they aren't already:
    winmm.lib
    imm32.lib
    version.lib

    nevermind on those libraries, that only applies to static builds. It's probably just the generator.py thing

    And under VC++ Directories, be sure includes/SDL2 is included. It probably is if you got that far
    Edited 3 times by jacob1. Last: 7th Jun 2018
  • jacob2
    7th Jun 2018 Member 0 Permalink
    This post has been removed: because mods can't double post
  • jacob1
    7th Jun 2018 Developer 0 Permalink
    I updated the wiki guide with a new link to the premade project.

    https://powdertoy.co.uk/Wiki/W/Compiling_tpt%2B%2B_with_Visual_studio.html

    Please download the new premade project, it has sdl2 support and fixes some issues with the last version of the project.
    You'll still need to install python and run generator.py, though
    Edited once by jacob1. Last: 7th Jun 2018
  • suzukn
    7th Jun 2018 Member 0 Permalink

    @jacob1 (View Post)

     Thank you so much!