ElementClasses

  • GreenFireDragon
    27th Mar 2013 Member 1 Permalink

    When i build it i get thid error 316 times:

    Error 222 error C1083: Cannot open include file: 'ElementClasses.h': No such file or directory

     

    Edit:

    Found it out, in the folder generated in the zip file ElementClasses.h doesn't exist.

    Can someone upload it?

  • bimmo_devices
    28th Mar 2013 Member 0 Permalink

    I have had a similar error. I can't fix it either, but with "Element.h". Something is wrong with the source code I would think. Perhaps someone could check it? Is this your first time compiling? You say 'generated', is that with "generator.py"?

     

    I have checked my error - it says that there should be a "simulation\" directory. We need the help of a DEV!

  • me4502
    28th Mar 2013 Member 0 Permalink
    I believe you need to run a script to generate it. generator.py IIRC.
  • jacob1
    28th Mar 2013 Developer 0 Permalink
    @GreenFireDragon (View Post)
    you need to get python (the latest version 2, not version 3), and then you need to run generator.py. You can just double click it and it should run. Also, I purposely didn't include ElementClasses.h, because it would already be out of date by now, and I want to force people to figure out how to do this needed step so they don't randomly become unable to compile.

    @bimmo_devices (View Post)
    Are you also using visual studio? It sounds like you didn't add the include directories properly. Also, simulation\ is in src\simulation
  • GreenFireDragon
    28th Mar 2013 Member 0 Permalink

    Thanks it works, I now see that 2.7.3 is needed (before I started with TPT I had 3.3.0)

  • jacob1
    28th Mar 2013 Developer 0 Permalink
    ok. I can make it python 3 compatible, someone gave me one like that but it was based off an outdated version of generator so I never put it up
  • bimmo_devices
    31st Mar 2013 Member 0 Permalink

    I used codeblocks - the tutorial. Go to compiling for windows, click the compiling category at the bottom, choose codeblocks setup. Is it outdated? My includes\ directory is directly in the project directory, "next to" src\. My project file is found in the same location. should the project be in src\ ? I can see Elements.h in src\simulation\ but even when I change "#include simulation\Elements.h" to "#include src\simulation\Element.h" the precompiler still can't find it! I haven't been able to compile one program from internet source code ever.

  • jacob1
    31st Mar 2013 Developer 0 Permalink
    @bimmo_devices (View Post)
    the code blocks guide is old and will not work at all without being rewritten, you will have to use visual studio or scons. And there is no scons guide.

    Also that's why I removed it from the main page, it's not linked to anymore
  • boxmein
    31st Mar 2013 Former Staff 0 Permalink
  • bimmo_devices
    1st Apr 2013 Member 0 Permalink

    What is the point of having #includes and header files if one must use a complicated procedure to link the project anyway? I can code C++, but I have no idea what all the "-GhdYv"s do in all those extra settings. I think I will give up then - or learn linking settings. Oh, and sorry G.F.Dragon for hijacking your thread.