compiling vanilla angband on msvc++ 9 express

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • hugh
    Rookie
    • Mar 2008
    • 5

    compiling vanilla angband on msvc++ 9 express

    Hi all,

    I really would like to mess with angbands vanilla code and have followed the instructions for compiling with msvc++ version 4/5.

    I get this error when I try to build the source...

    Error 1 fatal error C1853: 'Debug\angband.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)

    Can any gurus out there possably direct me to a successful compilation?

    anyway, peace and luv fellow rogues.
  • Nick
    Vanilla maintainer
    • Apr 2007
    • 9634

    #2
    Originally posted by hugh
    Error 1 fatal error C1853: 'Debug\angband.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)
    Really just a guess here - you could look through the options and try to turn off using precompiled headers.
    One for the Dark Lord on his dark throne
    In the Land of Mordor where the Shadows lie.

    Comment

    • hugh
      Rookie
      • Mar 2008
      • 5

      #3
      Thanks for the reply.

      I have tried that but it brings up syntax errors in robust headers.
      So I think Im better off with precompiled headers toggled on.

      But thanks for the suggestion.

      Comment

      • takkaria
        Veteran
        • Apr 2007
        • 1951

        #4
        Originally posted by hugh
        Hi all,

        I really would like to mess with angbands vanilla code and have followed the instructions for compiling with msvc++ version 4/5.

        I get this error when I try to build the source...

        Error 1 fatal error C1853: 'Debug\angband.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)

        Can any gurus out there possably direct me to a successful compilation?

        anyway, peace and luv fellow rogues.
        I don't know of anyone using msvc++ for the game at the moment. A couple of people who haven't been around for a while have managed it, though. (I think ctate did, you might want to try him.)
        takkaria whispers something about options. -more-

        Comment

        • ekolis
          Knight
          • Apr 2007
          • 921

          #5
          What do you mean by "robust" headers? The regular .h files? I'm not sure what these instructions are you're referring to, but if they're for VC++ 4/5 then they're probably horribly outdated...

          Last time I compiled Angband in VC++, what I did was this:
          1. Create a new C project with existing sources located in the angband folder.
          2. Remove all the main-??? files from the project EXCEPT main-win. (This is necessary because the others contain platform specific code for other platforms, and you can only have one main anyway.)
          3. Build

          If that's not working, maybe something has changed about the code, or maybe I have some compiler option set differently than you do...
          You read the scroll labeled NOBIMUS UPSCOTI...
          You are surrounded by a stasis field!
          The tengu tries to teleport, but fails!

          Comment

          • hugh
            Rookie
            • Mar 2008
            • 5

            #6
            Hey thanks.

            What I meant from robust headers (could'nt remember its name) was 40 errors like this

            Error 628 error C2143: syntax error : missing '{' before '*' c:\program files\microsoft sdks\windows\v6.0a\include\prsht.h 266 angband

            All concerning the prsht header if I do not use precompiled headers in the project options.

            Anyway, I'm gonna go try compiling angband under dev-cpp now (users mingw compiler).
            And see if I cant get it to compile...again.

            Comment

            • hugh
              Rookie
              • Mar 2008
              • 5

              #7
              I downloaded the sangband source and tried compiling under dev-cpp and had better luck but there seems to be a 'resource.h' file missing from the downloaded source.

              can anyone verify this???

              seeya.

              Comment

              Working...
              😀
              😂
              🥰
              😘
              🤢
              😎
              😞
              😡
              👍
              👎