Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old December 12, 2018, 09:36   #1
Geofferic
Rookie
 
Join Date: Oct 2007
Posts: 24
Geofferic is on a distinguished road
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.

Geofferic is offline   Reply With Quote
Old December 12, 2018, 10:15   #2
fph
Knight
 
Join Date: Apr 2009
Location: Berlin / Italy
Posts: 777
fph is on a distinguished road
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.
fph is offline   Reply With Quote
Old December 12, 2018, 11:20   #3
Geofferic
Rookie
 
Join Date: Oct 2007
Posts: 24
Geofferic is on a distinguished road
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.
Geofferic is offline   Reply With Quote
Old December 12, 2018, 11:23   #4
Geofferic
Rookie
 
Join Date: Oct 2007
Posts: 24
Geofferic is on a distinguished road
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
Geofferic is offline   Reply With Quote
Old December 12, 2018, 19:54   #5
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,786
Donated: $60
Nick is on a distinguished road
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.
Nick is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Solution for Angband crash on startup when compiled with Visual Studio Gordon Development 1 April 6, 2018 19:54
Nightly 2/12/2017 crashes on loading Grotug Vanilla 6 February 14, 2017 15:56
I re-compiled the latest PosBand for Windows pampl Variants 37 December 5, 2014 22:43
Can't run in my compiled version! hyperdex Development 11 November 30, 2012 21:23
Any chance for (compiled) Angband 3.0.9 debian file? ivanj Vanilla 9 November 3, 2007 11:29


All times are GMT +1. The time now is 19:30.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.