OpenTTD

Tasklist

FS#1826 - OpenTTD fails to compile with MS Visual C++ 2008

Attached to Project: OpenTTD
Opened by Tekky (Tekky) - Tuesday, 04 March 2008, 19:47 GMT
Last edited by Jean-Francois Claeys (Belugas) - Tuesday, 04 March 2008, 19:48 GMT
Type Bug
Category Core
Status Closed
Assigned To No-one
Operating System Windows
Severity Very Low
Priority Normal
Reported Version trunk
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

In the latest revision (r12337), I get the following error message when trying to compile OpenTTD when using Visual C++ 2008 Express Edition:

2>..srcottdres.rc(16) : fatal error RC1015: cannot open include file 'afxres.h'.

It seems that there is no file "afxres.h" included in Visual C++ 2008 Express Edition, in contrast to previous versions of Visual C++.

I was able to resolve this issue by changing ottdres.rc line 16 from
#include "afxres.h"
to
#define IDC_STATIC -1

At least under Visual C++ 2008, IDC_STATIC is the only required definition required from afxres.h.

I have set the severity of this task to "high" because, as far as I can tell, all MS Visual C++ 2008 users are currently unable to compile OpenTTD without this modification.
This task depends upon

Closed by  Jean-Francois Claeys (Belugas)
Friday, 07 March 2008, 02:40 GMT
Reason for closing:  Fixed
Additional comments about closing:  in r12349
Comment by Jean-Francois Claeys (Belugas) - Tuesday, 04 March 2008, 19:49 GMT
I've set it very low since it does not affect game play, but only user side compiler

Loading...