Announcement

Collapse
No announcement yet.

Missing header files

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • Missing header files

    Hello,
    Im using Visual Studio .Net 2003 and im trying to get the CTP2 source compiled. Iv read the threads about compiling the code and most things work fine, except when im trying to compile the ctp2 project. It gives me loads of missing header file errors. I'v tried to search for them but i cant find them.
    All the missing header files are named *Record.h.

    For example:
    AdvanceRecord.h
    OrderRecord.h
    StrategyRecord.h
    GoalRecord.h

    Excuse my english.

  • #2
    These files are generated by dbgen automaticly. Maybe for some reason the compiler didn't generated dbgen.

    Try to compile the *.cdb files manually. They can be found in the gs/newdb folder of ctp2 files in the project.

    -Martin
    Civ2 military advisor: "No complaints, Sir!"

    Comment


    • #3
      Before i get those errors i get lots of these (I dont know what i means):

      Performing Custom Build Step
      Assert g:\ctp_source\ctp2_code\gs\dbgen\ctpdb.cpp:xxx: outfile
      Assert g:\ctp_source\ctp2_code\gs\dbgen\ctpdb.cpp:xxx: outfile

      Comment


      • #4
        Originally posted by noteventime
        Before i get those errors i get lots of these (I dont know what i means):

        Performing Custom Build Step
        Assert g:\ctp_source\ctp2_code\gs\dbgen\ctpdb.cpp:xxx: outfile
        Assert g:\ctp_source\ctp2_code\gs\dbgen\ctpdb.cpp:xxx: outfile
        It means that dbgen isn't able to create new files, actual you get only this bit of info if you look at the code and these asserts also conatain line numbers and not just xxx, so that you can find the problem in the code. But as it works on my computer, it must be a problem on your side. For instance are all the access rights set properly on your machine for your source code directory, actual you should have write access for the whole project, otherwise it wouldn't work of course. But in the momemt I don't know something else. Well it could be also a wrong path but looking into the project I don't see any problems with that.

        -Martin
        Civ2 military advisor: "No complaints, Sir!"

        Comment


        • #5
          I compile as Administrator on a Windows 2000 machine, so as far as i know i should have full rights to the directory. Could it be because the directory is managed by tortoise svn.
          Everything else compiles fine without errors.

          Comment


          • #6
            Originally posted by noteventime
            I compile as Administrator on a Windows 2000 machine, so as far as i know i should have full rights to the directory. Could it be because the directory is managed by tortoise svn.
            Everything else compiles fine without errors.
            That isn't a tortoise svn issure, with toirtoise you just have a buch of extra subdirectories that's all.

            Another thing is that your soource code is on drive G instead of C, but actual this shouldn't do any difference. And I doubt that dbgen needs a tmp directory in the root directory of the drive. So a G:\tmp\ folder for you, that should be the bison component.

            The final alternative is to modify the assert, so that it can print the path in question.

            -Martin
            Civ2 military advisor: "No complaints, Sir!"

            Comment


            • #7
              I have a tmp folder in both C:\ and G:\
              Originally posted by Martin Gühmann
              The final alternative is to modify the assert, so that it can print the path in question.
              How do i do that :S. What are those asserts anyway.

              Comment


              • #8
                The Assert, also known as assertion falure, serves to indicate whether something happemd in the program that should not happen. Its argument is a boolean statement and if it is wrong an assertion falure occured.

                The CTP2 assertion falure messages give you the assertion that was false even it should be true and it gives you the source file of the assertion and its line. CTP2 asserts are only in debug mode active and give you in addition the stack trace of the functions.

                The asserts of dbgen just give you line, file and assertion. My idea was it to add the file that failed to be open put as it is just an fprintf to stderr, you could an fprintf explicitly at the places in question.

                -Martin
                Civ2 military advisor: "No complaints, Sir!"

                Comment


                • #9
                  Thanks for the explanation.

                  Comment

                  Working...
                  X