Compiling Error on Windows with VC++2010

  • p123aradise
    8th Jan 2013 Member 0 Permalink

    So I followed the instructions on the wiki, here.

    I went through it twice to make sure I did everything.

    When I compile, I get the error 

    Elements.h(98): fatal error C1083: Cannot open include file: 'ElementClasses.h': No such file or directory

    For pretty much every file that is shown.

    I'm using the code from the GitHub source, I forked it to here.

    How do i fix this problem?

  • Pilihp64
    8th Jan 2013 Developer 0 Permalink

    You have not run generator.py (or it didn't work correctly)

    "You now need python installed to run generator.py. Get python here, download version 2.7.3, probably this one if one 64 bit Windows. After you have it installed, just double click the generator.py and it should show a console window for a second and then close. This means it worked."

     

    The only known issue is the 'generated' folder not creating automatically, so first create a folder named 'generated' and then run jacobs generator.py.  You will then need to add all four files it creates to the project (right click in the solution explorer and hit add existing item)

  • jacob1
    8th Jan 2013 Developer 0 Permalink
    I updated the guide slightly to prevent this from happening to people later, but for now, just do what cracker64 said, it's really simple
  • p123aradise
    8th Jan 2013 Member 0 Permalink

    Okay, thanks.

    There are several other errors coming up. Are these part of the included libraries? I'm pretty sure i set those up correctly.

     

    Update.cpp(4): fatal error C1083: Cannot open include file: 'sys/param.h': No such file or directory

     

    Client.cpp(25): fatal error C1083: Cannot open include file: 'unistd.h': No such file or directory

     

    CommandInterface.cpp(12): fatal error C1083: Cannot open include file: 'strings.h': No such file or directory

     

  • jacob1
    8th Jan 2013 Developer 0 Permalink
    it looks like you skipped the step that told you to add "WIN, X86, X86_SSE2, USE_SDL, STABLE, GRAVFFT, LUACONSOLE" to the preprocessor

    under c++ -> preprocessor, add all of those separately on different lines. There are probably a few in the list already, just keep them
  • p123aradise
    8th Jan 2013 Member 0 Permalink

    Oh, it looks like I had added those as one line, the tutorial didn't really specify on that they were on separate lines.

    Working now! Thanks a ton!

  • jacob1
    8th Jan 2013 Developer 0 Permalink
    @p123aradise (View Post)
    ok, I only did that part of the guide once, and I think where I typed that was when I was first setting up the project before it had even opened in one of the boxes. I remember that worked for me, I don't know how well it works for others, maybe I wrote it wrong.
  • p123aradise
    9th Jan 2013 Member 0 Permalink

    @jacob1 (View Post)

     Yeah, i think i may have entered the preprocessor settings in a different step than in the tutorial.