![]() |
#51 |
Rookie
Join Date: May 2007
Location: Canberra, Australia
Posts: 16
![]() |
Run some version of Linux in a VM. My fave is debian in VirtualBox, but you have many options.
__________________
"You hit Morgoth, Lord of Darkness. You have slain Morgoth, Lord of Darkness. Congratulations, you have won the game. The Great Wyrm of Balance breathes chaos. You die." |
![]() |
![]() |
![]() |
#52 | ||
Swordsman
Join Date: May 2008
Posts: 473
![]() |
Quote:
1>c:\games\roguelikes\development\angband-latest\src\z-set.c(69): error C2065: 'ssize_t' : undeclared identifier 1>c:\games\roguelikes\development\angband-latest\src\z-set.c(69): error C2146: syntax error : missing ';' before identifier 'i' 1>c:\games\roguelikes\development\angband-latest\src\z-set.c(69): error C2065: 'i' : undeclared identifier 1>c:\games\roguelikes\development\angband-latest\src\win\win-layout.c(21): fatal error C1083: Cannot open include file: 'ui-term.h': No such file or directory 1>c:\games\roguelikes\development\angband-latest\src\win\scrnshot.c(20): fatal error C1083: Cannot open include file: 'png.h': No such file or directory 1>c:\games\roguelikes\development\angband-latest\src\mon-lore.c(1545): error C2057: expected constant expression There's a fair few more after that (and probably more if those get fixed). I guess I'll have to look at other compilers. Quote:
|
||
![]() |
![]() |
![]() |
#53 | ||||
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,638
Donated: $60
![]() |
If you want to keep trying:
Quote:
Quote:
Quote:
Quote:
I'm disappointed more recent versions didn't help - you couldn't import a 2010 project, could you?
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
||||
![]() |
![]() |
![]() |
#54 |
Swordsman
Join Date: Dec 2009
Location: Dallas, Texas, USA
Posts: 436
![]() |
I'm using VS 2013 at work and it has an empty project option under "Visual C++" that I use to compile 'Bands. As long as everything is a .c file it will compile as C and not C++. It's the premium version but I'd be surprised if the Express one lacked that option.
Getting sound to work is also a pain, but you can just comment out the #define SOUND statement (at least with older versions, haven't looked at the post-restructure code yet). |
![]() |
![]() |
![]() |
#55 |
Veteran
Join Date: Jan 2009
Location: Manhattan Beach, CA
Posts: 2,005
![]() |
Any chance of moving this discussion to a new thread? Every time I see Restructure update, I'm excited to see news from Nick and hoping to start playing a dev 4.0 version.
|
![]() |
![]() |
![]() |
#56 | |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,638
Donated: $60
![]() |
Quote:
![]() Sorry for getting your hopes up this time...
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
|
![]() |
![]() |
![]() |
#57 | ||
Swordsman
Join Date: May 2008
Posts: 473
![]() |
Quote:
Ok so it turns out there are two Visual Studio 2013 applications, one is called Visual Studio 2013 for Windows and the other is Visual Studio 2013 for Windows Desktop. I needed the latter and had installed the former. The good news is that it does apparently conform to the C99 standards (or at least most of them). So the struct initialisation problem has gone away now. [I still need to comment out get.c and get.h and you still can't use a static constant to define array length. I still had to replace ssize_t with int too. So maybe it doesn't use all the latest standards] There are still a couple of compilation errors: Error 4 error C2133: 'itypes' : unknown size angband-latest\src\load.c Line 780 Error 5 error C4703: potentially uninitialized local pointer variable 'chunk' used angband-latest\src\generate.c Line 752 Error 6 error C4703: potentially uninitialized local pointer variable 'info_ptr' used angband-latest\src\win\scrnshot.c Line 106 Quote:
|
||
![]() |
![]() |
![]() |
#58 | ||||
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 55
Posts: 8,638
Donated: $60
![]() |
Quote:
Quote:
Quote:
Quote:
Thanks for picking up all these - I will get to fixing them at some point, but this should keep you going for now.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
||||
![]() |
![]() |
![]() |
#59 |
Rookie
Join Date: May 2007
Location: Canberra, Australia
Posts: 16
![]() |
So you guys don't use the compiler to check for this stuff? It can save you a lot of time.
eg http://stackoverflow.com/questions/3...-clean-up-code
__________________
"You hit Morgoth, Lord of Darkness. You have slain Morgoth, Lord of Darkness. Congratulations, you have won the game. The Great Wyrm of Balance breathes chaos. You die." |
![]() |
![]() |
![]() |
#60 | |
Veteran
Join Date: Jun 2007
Posts: 1,372
![]() |
Quote:
What you want for practical applications is to just add -fsanitize=undefined -fsanitize=address to the clang/gcc command line. It's runtime checking, but the fact that it only points out real errors that you actually hit in the game means that it's actually humanly possible to actually fix all the issues. |
|
![]() |
![]() |
![]() |
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 |