[Aldor-l] write!
Ralf Hemmecke
ralf at hemmecke.de
Thu Aug 17 09:45:35 EDT 2006
Hello,
On 08/17/2006 08:35 AM, Preininger wrote:
> Hello,
>
> I try the AUG example 21.14 Text input,
>
> with aldor -ginterp textinput.as
> the command - open("file",fileWrite) works
> the command - write!(c,tw) fails with an error in: putc in sal_file.as
>
> any solution?
That file is supposed to be run as an executable. So try
aldor -laldor -fx textinput.as
textinput
or
aldor -laldor -grun textinput.as
The reason why it fails is, that (my very guess) the switch "-ginterp"
instructs the compiler to compile to foam and execute that FOAM code.
However, with FOAM you have NO access to routines directly implemented in C.
Ralf
More information about the Aldor-l
mailing list