![]() |
#1 |
Rookie
Join Date: Aug 2014
Posts: 3
![]() |
Trying to compile on Windows 8
Hey folks, I'm trying to compile Angband using the GCC compiler in Code::Blocks. After adding sqlite3 inside the source file it compiles for awhile until it reaches line 39 in db.c.
static bool stats_make_output_dir(void) { size_t size = strlen(ANGBAND_DIR_USER) + strlen(PATH_SEP) + 6; if (dir_create(ANGBAND_DIR_STATS)) {} The build message says: error: 'true undeclared (first use in this function) error: 'false' undeclared (first use in this function) Does anyone know what could be causing these errors? |
![]() |
![]() |
![]() |
#2 |
Veteran
Join Date: Jun 2007
Posts: 1,391
![]() |
What do you mean by "adding sqlite3 inside the source file", exactly?
|
![]() |
![]() |
![]() |
#3 |
Rookie
Join Date: Aug 2014
Posts: 3
![]() |
|
![]() |
![]() |
![]() |
#4 | |
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,481
Donated: $60
![]() ![]() |
Quote:
The bit you're compiling is part of the stats module, which I didn't think compiled by default on windows - but I guess you're not using the default windows compilation method. What actually are you doing? This sounds interesting.
__________________
One for the Dark Lord on his dark throne In the Land of Mordor where the Shadows lie. Last edited by Nick; August 7, 2014 at 21:58. Reason: more explanation |
|
![]() |
![]() |
![]() |
#5 | |
Rookie
Join Date: Aug 2014
Posts: 3
![]() |
Quote:
The second error came from winnt.h(Windows SDK). What it wants me to do is "define a target architecture." I have no idea how to do that. I just followed the compilation guide for Visual Studio in the source file and applied it to Code::Blocks instead. |
|
![]() |
![]() |
![]() |
#6 | ||
Vanilla maintainer
Join Date: Apr 2007
Location: Canberra, Australia
Age: 57
Posts: 9,481
Donated: $60
![]() ![]() |
Quote:
Quote:
![]()
__________________
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 |
T2 Linux -> Windows cross-compile with CMake? | Therem Harth | ToME | 0 | December 16, 2012 17:00 |
Unable to compile O | Rydel | Development | 0 | November 2, 2011 04:36 |
Issue with compile on Windows 7 64-bit using Visual C++ Express command line | -K- | Development | 1 | January 15, 2011 20:28 |
Trying to compile 3.1.2v2 on OS X | kLy | Development | 0 | December 2, 2010 16:45 |
Is there a windows compile of Gumband 2.3.2 floating around? | BlackFlame | Variants | 8 | February 12, 2010 01:16 |