delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2001/11/19/02:29:10

Date: Mon, 19 Nov 2001 09:09:40 +0200 (WET)
From: Andris Pavenis <pavenis AT lanet DOT lv>
X-Sender: pavenis AT ieva06
To: djgpp-workers AT delorie DOT com
Subject: Re: (fwd) Re: GCC3.02XXX
In-Reply-To: <hachvto0a900t8msgera469ii4akg28n5m@4ax.com>
Message-ID: <Pine.A41.4.05.10111190905150.47684-100000@ieva06>
MIME-Version: 1.0
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com


On Mon, 19 Nov 2001, Vladimir Zhuchko wrote:

> On Fri, 16 Nov 2001 12:42:39 +0300, Vladimir Zhuchko
> <zhuchko AT sunhe DOT jinr DOT ru> wrote:
> 
> 
> 1. I localized the problem with this script under Win2000:
> 
> #! /bin/sh
> #
> # We are not distributing Borland BGI fonts with GRX.
> # To add them to the library put .CHR files in this
> # directory (where this script is located) and run it
> # after building GRX
> #
> 
> rm -f *.o
> gcc -O2 ../src/bgi/bin2c.c -o bin2c.exe 
> for x in *.chr; do
> # !!! for statement will return under Win2000 UPPERCASE string

Haven't tried Win2k. One may try to use
	`echo *.chr | tr 'A-Z' 'a-z'` 
instead of plain
	*.chr

> ("LITT.CHR"...) !!!
> 	echo "Processing $x ...";
> 	name=`basename $x | sed -e 's,\.chr,,g'`
> # as we have UPPERCASE LITT.CHR sed... will not remove .chr
> # if I 'll change to .CHR inn sed script, then 	this script will work,
> but within the library 
> # the names will be LITT_font instead of litt_font
> 	echo $name
> 	./bin2c $x _${name}_font $name.c
> 	gcc -c -O2 $name.c
> 	rm $name.c
> done
> 
> 2. I found the problem under gcc302 compiler:
> The macros
>   #define ITR(Time)  itr->##Time
> is producing the Error message, under gcc2953 this is working well.

Try 
    #define ITR(Time)  ite->Time

It should work with both gcc-2.95.3 and gcc-3.0.X

Andris


- Raw text -


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