Error when I try to compile... a bunch.

  • Skitz
    10th Dec 2013 Member 0 Permalink

    When I tried to compile tpt with visual studio from following this tutorial... I got these errors. Brace yourself...

     https://powdertoy.co.uk/Wiki/W/Compiling_tpt_with_Visual_Studio_(old).html

     

     

    http://pastebin.com/ztHGaDzN

     

    How do I fix this? Or is there any easier way to compile tpt?

    Edited once by Skitz. Last: 10th Dec 2013
  • techno156
    10th Dec 2013 Member 0 Permalink

    There's something on the bottom that is said to help with compiling. :) That's all the help I can give, though. :(

  • jacob1
    10th Dec 2013 Developer 0 Permalink
    if you want to use visual studio, use the new guide here: https://powdertoy.co.uk/Wiki/W/Compiling_tpt%2B%2B_with_Visual_studio.html You will need to restart from scratch except for you already have visual studio installed. The guides aren't really compatible but involve doing a lot of the same things just with newer versions of stuff.

    The old guide is mostly there for reference, it even says "old" in the title and the top of the page.

    Edit: also the scons guide might be a little easier except for installing a certain program. If you already have visual studio and can follow all the many steps in detail I would just keep using that because it's easier in the end.
    Edited 2 times by jacob1. Last: 10th Dec 2013
  • Skitz
    10th Dec 2013 Member 0 Permalink

    I tried that one, but I still got the same amount of errors. Also, I couldn't find file.c or tptlibrary folder.

     

    Error:http://pastebin.com/eLEBzeHv

     

    I want to create a new element so bad ;-;

  • jacob1
    10th Dec 2013 Developer 0 Permalink
    Looks like you might have done something wrong on the include directories step (this is the most common problem it seems ...)

    Make sure all of these are on a different line:
    $(ProjectDir)includes
    $(ProjectDir)includes/SDL
    $(ProjectDir)includes/lua5.1
    $(ProjectDir)data
    $(ProjectDir)src
    $(ProjectDir)generated

    Specifically, the src one might be missing. That wouldn't explain the first error with vector but it might get you closer.

    Edit: also I guess we already deleted those files from the source at this point. So you don't need to delete them anymore, i'll remove that from the guide later.
    Edited once by jacob1. Last: 10th Dec 2013
  • Skitz
    11th Dec 2013 Member 0 Permalink

    I got it to compile... 

     

    I just opened the project file that was downloaded along with the source folder and released it from there... but now I get an error when I try adding a new element... Too many initializers.