tools.h is missing

  • firefreak11
    18th May 2013 Member 0 Permalink

    Can't find it anywhere on github or the forums. I ran generator.py and it worked, the only problem is that tools.h is not found when compiling and it is not on my computer. I am using the old MSVC tpt++ tutorial, not the scons command line compiling because that doesn't work. But I need tools.h to compile so how do I get it?

  • mniip
    18th May 2013 Developer 0 Permalink
    generator.py should have generated the file under generated/Tools.h
  • jacob1
    18th May 2013 Developer 0 Permalink
    I recently removed tools.h, so that is probably why. You must have an old version of the generator for some reason, I don't know why. Try and update it, and run it from the command line to see if there are any errors.

    @mniip (View Post)
    no, it doesn't make that one
  • firefreak11
    18th May 2013 Member 0 Permalink

    @jacob1 (View Post)

     Update generator.py? I will get the most recent one from github

  • jacksonmj
    18th May 2013 Developer 0 Permalink

    All it had in it was:

    #ifndef TOOLS_H_
    #define TOOLS_H_
    #include "ToolClasses.h"
    #endif

    All the files that originally used Tools.h should now use ToolClasses.h directly. If your source code is up to date, Tools.h shouldn't be needed.

  • firefreak11
    18th May 2013 Member 0 Permalink

    @jacksonmj (View Post)

     It is up to date, and i updated generator.py, and the tools.h error is gone, but now I get 

    LINK : warning LNK4075: ignoring '/INCREMENTAL' due to '/OPT:ICF' specification
    1>LINK : fatal error LNK1123: failure during conversion to COFF: file invalid or corrupt


    Probably need to downgrade .NET to 4.0 or something.

  • mniip
    18th May 2013 Developer 0 Permalink
    @firefreak11 (View Post)
    what is .NET even doing there?
  • firefreak11
    18th May 2013 Member 0 Permalink

    @mniip (View Post)

     failure during conversion to COFF: file invalid or corrupt is an error with .NET 4.5 isn't it? I need to downgrade to 4.0

  • boxmein
    18th May 2013 Former Staff 0 Permalink
    @firefreak11 (View Post)
    Probably not. TPT doesn't even use .NET anywhere.
  • firefreak11
    18th May 2013 Member 0 Permalink

    @boxmein (View Post)

     What about the compiler. I'm using Microsoft Visual C++ Express 2010

    Edit: Turns out I was right. The downgrade to .NET 4.0 fixed it and it compiled successfully. Now time to add elements and stuff.

    Edit: I have absolutely no idea how to use tpt++. I will continue using C