Hmm, it's obviously me doing something wrong, but this code gives compilation errors:Chain-Q wrote:@pjw
Something tells me the bar wasn't set too high, but hey. Any victory is a victory! Anyway, as said earlier, now documented.
Code: Select all
{ Program to demonstrate the Reset function. }
program FPC_RESET;
Var
f : text;
l : array[0..255] of char;
begin
Assign (f,'ram1_test.txt');
Reset (f); { file is opened for read }
Readln(f, l);
Writeln (l);
Close (f);
end.
Code: Select all
$ fpc-ql -Tsinclairql reset.pp
system.o: In "SYSTEM_$$_SYSINITQDOS":
Error 21: system.o (.text.n_system_$$_sysinitqdos+0x56): Reference to undefined symbol __fpc_program_name.
Warning 22: Attributes of section .text were changed from r-x- in Linker Script <link1340.res> to rwx- in reset.o.
reset.pp(10,30) Error: Error while linking
reset.pp(10,30) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
I have done the following:
- svn update;
- rebuilt the cross compiler -- just in case;
- rebuilt the rtl;
- Added program to the source code;
- Compiled with "fpc-ql -Tsinclairql reset.pp"
What have I missed please?
Cheers,
Norm.