delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/09/08/21:14:39

Date: Mon, 8 Sep 1997 20:14:30 -0500 (CDT)
From: Andrew Deren <aderen AT eecs DOT uic DOT edu>
To: Paul Derbyshire <ao950 AT FreeNet DOT Carleton DOT CA>
cc: djgpp AT delorie DOT com
Subject: Re: WHAM_2B.ZIP defective
In-Reply-To: <5v1u44$m3r@freenet-news.carleton.ca>
Message-ID: <Pine.SUN.3.95.970908201129.20327D-100000@ernie.eecs.uic.edu>
MIME-Version: 1.0

On 8 Sep 1997, Paul Derbyshire wrote:

I think that the error you got is caused by the different versions of
allegro used. I'm not sure about this but probably wham was done in
allegro v2.2 and you are using wip, but I know that definition of textout
in allegro changed in some version from char* to unsigned char *, I would
suggest changing all the source code lines with this error so that not
char* is passed but (unsigned)char*

> 
> 
> I'm not sure which simtel I downloaded WHAM_2B.ZIP from, but in any case
> the copy I got is defective. It won't compile out of the box, and I don't
> particularly want to muck around in its guts if I can help it. Make does
> about half of it and then blows up:
> 
> [snip]
> gcc -O3 -Wall -ffast-math -fomit-frame-pointer -I./include -g -Werror  -c src/wo
> bject.cc
> gcc -O3 -Wall -ffast-math -fomit-frame-pointer -I./include -g -Werror  -c src/he
> lpers.cc
> cc1plus.exe: warnings being treated as errors
> src/helpers.cc: In function `void trace(char * ....)':
> src/helpers.cc:54: warning: passing `char *' as argument 3 of `textout(BITMAP *,
>  FONT *, unsigned char *, int, int, int)' changes signedness
> src/helpers.cc:55: warning: passing `char *' as argument 3 of `textout(BITMAP *,
>  FONT *, unsigned char *, int, int, int)' changes signedness
> src/helpers.cc: In function `void wham_trans_calc_progress(int)':
> src/helpers.cc:67: warning: passing `char *' as argument 3 of `textout(BITMAP *,
>  FONT *, unsigned char *, int, int, int)' changes signedness
> src/helpers.cc: In function `void w_textout(struct BITMAP *, struct FONT *, char
>  *, int, int, int, int)':
> src/helpers.cc:128: warning: passing `char *' as argument 3 of `textout(BITMAP *
> , FONT *, unsigned char *, int, int, int)' changes signedness
> src/helpers.cc: In function `void w_textout_centre(struct BITMAP *, struct FONT
> *, char *, int, int, int, int)':
> src/helpers.cc:134: warning: passing `char *' as argument 3 of `textout_centre(B
> ITMAP *, FONT *, unsigned char *, int, int, int)' changes signedness
> make.exe: *** [helpers.o] Error 1
> 
> 
> The errors seem to all be of the same type. This suggests one mistake in
> the source that got duplicated frequently. Is just this one ZIP defective,
> or is that whole version corrupt? If so...how did it ever get through
> testing to get shipped to the FTP sites? (Considering that it took 30
> minutes to download the 150K zip using the flaky modems/protocols of this
> ISP, which is time-metered, an awful lot of time seems to have been
> invested in nothing...)
> --
>     .*.  Where feelings are concerned, answers are rarely simple [GeneDeWeese]
>  -()  <  When I go to the theater, I always go straight to the "bag and mix"
>     `*'  bulk candy section...because variety is the spice of life... [me]
> Paul Derbyshire ao950 AT freenet DOT carleton DOT ca, http://chat.carleton.ca/~pderbysh
> 


                        ,,,
                       (0 0)
   +-------------oOO----(_)-------------------+
   |                Andrew Deren              |  
   |             aderen AT eecs DOT uic DOT edu          |
   | www.eecs.uic.edu/~aderen/ader/main.html  |
   +-------------------------oOO--------------+
                       || ||
                      ooO Ooo
 


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019