![]() |
#1 |
Rookie
Join Date: Oct 2007
Posts: 24
![]() |
Has anyone compiled Angband with VS 2017?
Specifically I'm trying to compile 4.0.5, but any post 4.0.0 version is fine.
I'm running into all sorts of fun issues. Having trouble getting sqlite3 to work with db.h. Also, the stdio.h line " #error Macro definition of snprintf conflicts with Standard Library function declaration" which is supposed to throw up a warning is throwing up some 200 errors. Woo! I apologize for my ignorance here. I haven't used C since 1998. ![]() |
![]() |
![]() |
![]() |
#2 |
Knight
Join Date: Apr 2009
Location: Berlin / Italy
Posts: 794
![]() |
I don't think you need to compile in the stat module (and sqlite3) at all to use the game; it's just a very niche thing used for development. Do you still get the sqlite3 errors if you exclude it from the configuration options?
__________________
Dive fast, die young, leave a high-CHA corpse. -- You read a scroll labeled 'lol gtfo' of Teleport Level. |
![]() |
![]() |
![]() |
#3 |
Rookie
Join Date: Oct 2007
Posts: 24
![]() |
Yes, excluding that stops the issues I was having with db.h/.c. Thanks.
Now I have a new problem! OK, two new problems. A lot of the instructions that are included with the source for compiling in VS mention adding .h and .c from src/player, src/monster, etc. Those folders don't exist, because they are all under src/test. So I went through and added the files in situ to the project. So I can see, eg, player.h in the project under header files. But the history.c, eg, throws an error that it cannot find player.h. I mean it's listed in the header files, but ... More obviously, unit-test.h (which I also added since it was demanding it) isn't being seen, either. And the other problem is that get.h throws every sort of syntax error. |
![]() |
![]() |
![]() |
#4 |
Rookie
Join Date: Oct 2007
Posts: 24
![]() |
I have two notions: perhaps I need to include each sub directory in the pathing, but that seems odd to me.
The other is to move folders out of src/test and into src, then remove the references to the unit-test, etc. None of that will fix get.h, but one thing at a time. hah |
![]() |
![]() |
![]() |
#5 |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,865
Donated: $60
![]() |
I would not include the test module either - so you don't need anything from src/tests. I think you can ignore get.c and get.h too - IIRC they were a dead-end in the code, and (as of 4.1) aren't in the codebase any more.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. |
![]() |
![]() |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Solution for Angband crash on startup when compiled with Visual Studio | Gordon | Development | 1 | April 6, 2018 20:54 |
Nightly 2/12/2017 crashes on loading | Grotug | Vanilla | 6 | February 14, 2017 16:56 |
I re-compiled the latest PosBand for Windows | pampl | Variants | 37 | December 5, 2014 23:43 |
Can't run in my compiled version! | hyperdex | Development | 11 | November 30, 2012 22:23 |
Any chance for (compiled) Angband 3.0.9 debian file? | ivanj | Vanilla | 9 | November 3, 2007 12:29 |