trouble compiling instruction: console.puts(...
- From: "Bernie Woodham" <spamtrap@xxxxxxxxxx>
- Date: Tue, 10 Oct 2006 17:28:18 -0400
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.
.
- Follow-Ups:
- Re: trouble compiling instruction: console.puts(...
- From: Bernie Woodham
- Re: [Clax86list] trouble compiling instruction: console.puts(...
- From: Charles A. Crayne
- Re: trouble compiling instruction: console.puts(...
- Prev by Date: Re: project preporcessor for GAS
- Next by Date: Re: Multi-section bin code users: RFC
- Previous by thread: Popping Stack and then Displaying value
- Next by thread: Re: [Clax86list] trouble compiling instruction: console.puts(...
- Index(es):
Relevant Pages
|