Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 


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
Compiling with Borland C++ 5.5 (yes, I know) PaulBlay Development 2 February 23, 2009 16:55
compiling in VC6 NeoWizard Vanilla 1 January 16, 2009 03:10
Compiling in Linux trickypig Vanilla 6 November 16, 2008 16:26
Compiling Issues Gregian Vanilla 13 July 2, 2008 15:35
Compiling 3.0.9b under SuSE 9.3 ... TJA Vanilla 14 May 12, 2008 22:17


All times are GMT +1. The time now is 04:03.


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