PDA

View Full Version : compiling vanilla angband on msvc++ 9 express


hugh
March 17, 2008, 10:03
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
March 17, 2008, 10:21
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.

hugh
March 17, 2008, 10:53
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.

takkaria
March 17, 2008, 12:03
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 (http://angband.oook.cz/forum/member.php?u=171) did, you might want to try him.)

ekolis
March 17, 2008, 12:44
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...:confused:

hugh
March 17, 2008, 14:02
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
March 17, 2008, 16:49
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.