Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old March 17, 2008, 09:03   #1
hugh
Rookie
 
Join Date: Mar 2008
Posts: 5
hugh is on a distinguished road
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.
hugh is offline   Reply With Quote
Old March 17, 2008, 09:21   #2
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 52
Posts: 6,566
Donated: $60
Nick is on a distinguished road
Quote:
Originally Posted by hugh View Post
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 Ring to rule them all, One Ring to find them,
One Ring to bring them all and in the darkness bind them.
Nick is offline   Reply With Quote
Old March 17, 2008, 09:53   #3
hugh
Rookie
 
Join Date: Mar 2008
Posts: 5
hugh is on a distinguished road
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.
hugh is offline   Reply With Quote
Old March 17, 2008, 11:03   #4
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,826
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by hugh View Post
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 is online now   Reply With Quote
Old March 17, 2008, 11:44   #5
ekolis
Knight
 
ekolis's Avatar
 
Join Date: Apr 2007
Location: Cincinnati, OH, USA
Age: 34
Posts: 911
ekolis is on a distinguished road
Send a message via AIM to ekolis Send a message via MSN to ekolis Send a message via Yahoo to ekolis Send a message via Skype™ to ekolis
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!
ekolis is offline   Reply With Quote
Old March 17, 2008, 13:02   #6
hugh
Rookie
 
Join Date: Mar 2008
Posts: 5
hugh is on a distinguished road
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.
hugh is offline   Reply With Quote
Old March 17, 2008, 15:49   #7
hugh
Rookie
 
Join Date: Mar 2008
Posts: 5
hugh is on a distinguished road
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.
hugh 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
Compiling Angband 3.0.9 w/ xcode on OSX Iemortal Vanilla 8 April 16, 2011 16:41
Getting Unangband/Angband from SVN and Compiling on Windows andrewdoull Development 133 April 7, 2011 14:28
Getting Visual C++ 2008 Express Edition to compile Angband 3.0.9 Orillian Vanilla 5 February 10, 2008 09:23
Review: Vanilla Angband TJA Variants 24 August 23, 2007 23:30
Trouble compiling angband 3.0.9 on linux RastaRuedi Vanilla 2 August 1, 2007 17:28


All times are GMT +1. The time now is 13:39.


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