Angband.oook.cz
Angband.oook.cz
AboutDownloadVariantsLadderForumCompetitionSpoilersComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old July 26, 2009, 00:44   #1
Kyle
Rookie
 
Kyle's Avatar
 
Join Date: Jul 2009
Posts: 15
Kyle is on a distinguished road
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?
Kyle is offline   Reply With Quote
Old July 26, 2009, 01:39   #2
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,590
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by Kyle View Post
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.

Quote:
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.
__________________
"Physician, heal thyself."
takkaria is offline   Reply With Quote
Old July 26, 2009, 07:09   #3
Kyle
Rookie
 
Kyle's Avatar
 
Join Date: Jul 2009
Posts: 15
Kyle is on a distinguished road
Right on both counts; thanks!

Kyle
Kyle is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Problems running Angband ChodTheWacko Vanilla 12 January 12, 2011 07:43
To everyone having problems with Angband starting slowly or not at all... takkaria Vanilla 3 January 9, 2009 07:09
compiling vanilla angband on msvc++ 9 express hugh Vanilla 6 March 17, 2008 15:49
Getting Visual C++ 2008 Express Edition to compile Angband 3.0.9 Orillian Vanilla 5 February 10, 2008 09:23
Problems angband winxp smokie007 Vanilla 24 November 12, 2007 10:42


All times are GMT +1. The time now is 03:26.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.