Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old April 8, 2009, 17:33   #11
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Originally Posted by PaulBlay View Post
I'm trying to get Open Watcom to work for me at the moment.
Not having much luck yet. Some of the warnings appear incorrect (to my inexperienced eye). For example the following line

Code:
		if (parse_under && (ke.key >=0 && ke.key <= 32))
gets a "Warning! W124: Comparison result always 1", but I can't see what's wrong with it.

I also have a whole bunch of

Symbol 'SCREEN_REGION' has been defined, but not referenced

warnings, but it's being used like

menu_layout(menu, &SCREEN_REGION);

all over the place. Does 'referenced' mean something else than what I think it does?
__________________
Currently turning (Angband) Japanese.
PaulBlay is offline   Reply With Quote
Old April 8, 2009, 17:39   #12
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,768
Donated: $40
Pete Mack will become famous soon enough
@paul:
Those warnings are both extremely dubious (ie: wrong). I wouldn't trust the compiler to generate reliable code.

Why pick yet another obsolete compiler? Just use gcc on the command line for a reference, even if you still want to use DevCC for an IDE.


Or go all the way and install Visual C++ express. It's a huge (~800MB) download, but it's an extremely good IDE and compiler.
Pete Mack is offline   Reply With Quote
Old April 8, 2009, 17:47   #13
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
@paul:
Those warnings are both extremely dubious (ie: wrong). I wouldn't trust the compiler to generate reliable code.

Why pick yet another obsolete compiler?
To be fair its last release was in February 2009 so it wasn't exactly obvious to me that it was obsolete.

Quote:
Or go all the way and install Visual C++ express. It's a huge (~800MB) download, but it's an extremely good IDE and compiler.
I've got Visual C++ installed, it was on the list of compilers to try eventually. I guess I just have bad judgement in picking which ones to try.
__________________
Currently turning (Angband) Japanese.
PaulBlay is offline   Reply With Quote
Old April 8, 2009, 17:56   #14
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,951
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by PaulBlay View Post
Not having much luck yet. Some of the warnings appear incorrect (to my inexperienced eye). For example the following line

Code:
		if (parse_under && (ke.key >=0 && ke.key <= 32))
gets a "Warning! W124: Comparison result always 1", but I can't see what's wrong with it.
Looks like ke.key is unsigned on Watcom, when it's not elsewhere. Hence, "ke.key >= 0" will always be true.

Quote:
I also have a whole bunch of

Symbol 'SCREEN_REGION' has been defined, but not referenced

warnings, but it's being used like

menu_layout(menu, &SCREEN_REGION);

all over the place. Does 'referenced' mean something else than what I think it does?
No. What's happening is that a header file is causing SCREEN_REGION to be defined as static in every single file, even those which don't make use of it. You'll only be getting warnings from the files which don't reference SCREEN_REGION but nevertheless include the ui.h (I think) file.
__________________
takkaria whispers something about options. -more-
takkaria is offline   Reply With Quote
Old April 8, 2009, 17:56   #15
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 6,768
Donated: $40
Pete Mack will become famous soon enough
Quote:
To be fair its last release was in February 2009 so it wasn't exactly obvious to me that it was obsolete.
I had no idea. I wonder what keeps it alive? Anyway, those warnings are wrong.

Really, gcc (aka MINGW) and Visual Studio are the industry standards, with Sun and HP still around for special-purpose code. (lcc is still out there for a light-weight portable compiler, but since it doesn't include C++, it's kind of obsolete.)
Pete Mack is offline   Reply With Quote
Old April 10, 2009, 17:16   #16
zaimoni
Knight
 
zaimoni's Avatar
 
Join Date: Apr 2007
Posts: 590
zaimoni is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
I had no idea. I wonder what keeps it alive?
The Watcom compiler was open-sourced a few years back; it's properly OpenWatcom now.
zaimoni is offline   Reply With Quote
Old April 10, 2009, 19:05   #17
PaulBlay
Knight
 
Join Date: Jan 2009
Posts: 657
PaulBlay is on a distinguished road
Quote:
Originally Posted by zaimoni View Post
The Watcom compiler was open-sourced a few years back; it's properly OpenWatcom now.
Hence
Quote:
I'm trying to get Open Watcom to work for me at the moment.
Incidentally it is apparently possible to work around the 'same filename different directory' problem, but it's not very user friendly so I'm leaving it for now.

VC++ has its own quirks (angband.ico has to be in the same directory as angband.rc, for instance).
__________________
Currently turning (Angband) Japanese.
PaulBlay 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
Announcing Angband/65 (pre-alpha) PaulBlay Development 10 April 1, 2009 21:36
How to compile Angband page PaulBlay Oook! 2 February 20, 2009 12:51
Getting Visual C++ 2008 Express Edition to compile Angband 3.0.9 Orillian Vanilla 5 February 10, 2008 09:23
Compile failure for 3.0.9 on Mac OS X 10.4.10 TreeFrog Vanilla 4 November 8, 2007 14:58
[Z] 2.7.5 Pre I Irashtar Variants 4 October 21, 2007 07:54


All times are GMT +1. The time now is 18:24.


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