Re: trouble compiling instruction: console.puts(...
- From: "Bernie Woodham" <spamtrap@xxxxxxxxxx>
- Date: Tue, 10 Oct 2006 23:32:05 -0400
"Bernie Woodham" <spamtrap@xxxxxxxxxx> wrote in message
news:HoadnQknDtbljbHYnZ2dnUVZ_vmdnZ2d@xxxxxxxxxxxxxxxx
I'm reading the AoA by Randy Hyde. In the chapter called
"IntegerArithmetic" he has a program called "testRandom" that illustrates
the use of the rand.range and rand.urange functions. What this program
does is prints a number of asterisks on your screen in a random pattern.
I thought I'd go ahead and run the program just to see what it looks like.
The code didn't seem very difficult.
However, I cannot compile the program. When I try I get the following
error:
============
Error in file "testRandom.hla" at line 22 [errid:55234/hlaparse.bsn]:
Expected ':' , encountered '('
<Possible undefined ID '.puts').
==============
So, the line it is complaining about is:
console.puts( ax, bx, "*" );
The lines immediately preceeding it are:
rand.urange( 0, 23);
//Print an asterisk at
//the specified coordinate on the screen.
console.puts( ax, bx, "*" );
So, I take it that for some reason I am unable to compile the
console.puts instruction. Just to experiment I typed in console.put and
then console.putsx.
Both times it complained about the same thing. put as an undefined ID and
putsx as an undefined ID.
The same program contained the console.cls(); instruction and that
compiled with no problem.
If this is a problem with the libraries I figure someone else would have
probably run into this problem also.
Anyone?
Thanks.
Well, thanks anyway. But yes, he updated the console.hff file to make it
more useful for both Windows and Linux. Thus some functions were removed.
.
- References:
- trouble compiling instruction: console.puts(...
- From: Bernie Woodham
- trouble compiling instruction: console.puts(...
- Prev by Date: Re: [Clax86list] trouble compiling instruction: console.puts(...
- Next by Date: Re: [Clax86list] trouble compiling instruction: console.puts(...
- Previous by thread: Re: [Clax86list] trouble compiling instruction: console.puts(...
- Next by thread: Re: Is there any forum for [BIOS] ?
- Index(es):
Relevant Pages
|