![]() |
#41 |
Swordsman
Join Date: Dec 2009
Location: Dallas, Texas, USA
Posts: 436
![]() |
I think this is due to VS not supporting newer C standards, specifically C99. This article has more info: http://stackoverflow.com/questions/1...-c-c-standards
The article mentions using the Intel compiler in place of Microsoft's, though I haven't tried that. You can also re-write the sections of code that aren't supported; I think if you change the struct declarations and change any array size definitions to constants you should be 95% done (or at least that was the case before the restructure). |
![]() |
![]() |
![]() |
#42 |
Swordsman
Join Date: May 2008
Posts: 473
![]() |
Ah ok thanks for the information, I guess that Angband is not going to normally be compilable on Visual C++.
I might look into using another compiler and IDE, what do other people use when compiling the game? |
![]() |
![]() |
![]() |
#43 | |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,638
Donated: $60
![]() |
Quote:
The other error may well be a VS problem - I thought that MS had included enough of the C99 standard now, but apparently not. I believe I have managed to debug in windows using msys, MinGW and gdb, but I may be misremembering.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
|
![]() |
![]() |
![]() |
#44 | |
Veteran
Join Date: Jun 2007
Posts: 1,372
![]() |
Quote:
They do support(-ish) recent versions of C++, but that's not really relevant here. Of course C++ initializer syntax is incompatible with C99 anyway, so... |
|
![]() |
![]() |
![]() |
#45 | |
Swordsman
Join Date: May 2008
Posts: 473
![]() |
Quote:
|
|
![]() |
![]() |
![]() |
#46 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,638
Donated: $60
![]() |
Well, you never know - maybe Microsoft will implement support for modern C one day
![]() By the way, have you checked out this thread? I assume that it is not much help, but there might be something in there of use to you.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
#47 | ||
Swordsman
Join Date: May 2008
Posts: 473
![]() |
Quote:
I guess that it is a balance though between wanting to use the latest shiny code standards and reducing compatibility for people who might want to help with the game ![]() Are the new code standards that vital to use despite reducing who can compile the game? (Genuine question I'm not trying to be argumentative or anything, I'm not really up to date on these things). Angband used to compile on VS no problem in the past. Quote:
![]() |
||
![]() |
![]() |
![]() |
#48 | |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,638
Donated: $60
![]() |
Quote:
I think Code:
static struct init_module arrays_module = { "arrays", init_arrays, cleanup_arrays }; ![]()
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
|
![]() |
![]() |
![]() |
#49 |
Veteran
Join Date: Oct 2011
Location: Toronto, Canada
Posts: 2,386
![]() |
Something with a '99' in its name should probably have a good patina by now, anyways
![]()
__________________
Glaurung, Father of the Dragons says, 'You cannot avoid the ballyhack.' |
![]() |
![]() |
![]() |
#50 |
Scout
Join Date: Jun 2007
Posts: 32
![]() |
TJS did say they were using VS express 2010 - MS might have improved C99 support in VS 2012 and 2013 (which also have free express versions).
|
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Ladder restructure request | OOD Town drunk | Vanilla | 7 | April 4, 2013 17:11 |
v4 update | Magnate | v4 | 10 | December 13, 2011 14:40 |
Ladder Update | UglySquirrell | Vanilla | 2 | September 20, 2011 05:50 |
Quickband update | Antoine | Variants | 11 | March 21, 2011 02:26 |
Help me update PosBand! | pampl | Development | 20 | December 27, 2010 19:55 |