Thread: Compiling 3.2
View Single Post
Old December 24, 2010, 21:11   #1
Omnipact
Rookie
 
Join Date: Jun 2007
Location: Bristol, UK
Posts: 23
Omnipact is on a distinguished road
Compiling 3.2

So I'm trying to compile Angband on WinXP with the SDL frontend...
I'm using code::blocks with the mingw stuff.

I get some very strange warnings:

Code:
||=== Angband, Debug ===|
C:\SDL-1.2.14\include\SDL_config.h|74|warning: "HAVE_STDINT_H" redefined|
C:\angband-3.2.0\src\h-basic.h|38|warning: this is the location of the previous definition|
C:\angband-3.2.0\src\main-sdl.c||In function 'Term_xtra_sdl_event':|
C:\angband-3.2.0\src\main-sdl.c|2738|warning: implicit declaration of function 'usleep'|
C:\SDL-1.2.14\include\SDL_config.h|74|warning: "HAVE_STDINT_H" redefined|
C:\angband-3.2.0\src\h-basic.h|38|warning: this is the location of the previous definition|
C:\angband-3.2.0\src\z-file.c||In function 'file_read':|
C:\angband-3.2.0\src\z-file.c|484|warning: implicit declaration of function 'fileno'|
||=== Build finished: 0 errors, 6 warnings ===|
The linker, however, does not fall over and I get a working Angband executable. (the 'implicit declarations' are called correctly)

Out of curiosity I then compiled 3.1.2 to see what happened...
It compiled perfectly with no warnings or errors. (it still uses usleep & fileno)

Another thing I tried was to add all the -Wxxx switches (from makefile.std)to the build and got over 300 warnings! Mainly 'unused parameter' & 'no previous declaration' errors.

I also couldn't compile unless I set '-std=c99' (which is not in makefile.std)

A few questions:

Has anyone else tried compiling a windows/SDL build of 3.2?

Any idea what those warnings are about? - Am I doing something daft?

Does anyone else compile with the -Wxxx settings on?
(There are a lot of unused parameters)

Oh yeah, and have a very merry christmas people!

Iain
Omnipact is offline   Reply With Quote