Problems compiling Vanilla Angband 3.1.0b in MSVC++ 2008 Express

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Kyle
    Rookie
    • Jul 2009
    • 15

    Problems compiling Vanilla Angband 3.1.0b in MSVC++ 2008 Express

    I'm using Microsoft Visual C++ 2008 Express.

    From the command line I typed:

    Code:
    nmake /fMakefile.nmake
    as instructed here.

    I was definitely in my src directory.

    I had a bunch of "file not found" errors from the c files in the subdirectories that include angband.h.

    I fixed those by doing a bunch of these:

    Code:
    -#include "angband.h"
    +#include "../angband.h"
    and I made the similar modification when I got a similar error for other includes as well.

    But after I fixed all those, the compiler complains that it doesn't know how to create xtra2.o. I checked and couldn't find an xtra2.c file anywhere, but I did find an xtra3.c file.

    But in Makefile.src it says it lists both xtra2.o and xtra3.o so I know that I really do need an xtra2.c file or something.

    How can I fix this?
  • takkaria
    Veteran
    • Apr 2007
    • 1951

    #2
    Originally posted by Kyle
    I'm using Microsoft Visual C++ 2008 Express.

    From the command line I typed:

    Code:
    nmake /fMakefile.nmake
    as instructed here.

    I was definitely in my src directory.

    I had a bunch of "file not found" errors from the c files in the subdirectories that include angband.h.

    I fixed those by doing a bunch of these:

    Code:
    -#include "angband.h"
    +#include "../angband.h"
    and I made the similar modification when I got a similar error for other includes as well.
    See if adding "/I.." on the CFLAGS lines helps at all; I think it will.

    But after I fixed all those, the compiler complains that it doesn't know how to create xtra2.o. I checked and couldn't find an xtra2.c file anywhere, but I did find an xtra3.c file.

    But in Makefile.src it says it lists both xtra2.o and xtra3.o so I know that I really do need an xtra2.c file or something.

    How can I fix this?
    You must have deleted it somewhere along the way, since xtra2.c is definitely there in the download archive.
    takkaria whispers something about options. -more-

    Comment

    • Kyle
      Rookie
      • Jul 2009
      • 15

      #3
      Right on both counts; thanks!

      Kyle

      Comment

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