<br><font size=2 face="sans-serif">Hi there!</font>
<br>
<br><font size=2 face="sans-serif">I've been trying to compile some code
that used to work in version 1.0.10 of the compiler, but now seems to give
errors. In each of the errors below, it looks like a function is
being put into a record, and the compiler doesn't like it. I have
pasted the relevant lines from fs.inc below along with the errors that
the compiler throws.</font>
<br>
<br><font size=2 face="sans-serif">Can anyone shed some light onto what
has changed between compiler versions?</font>
<br>
<br><font size=2 face="sans-serif">Thanks,</font>
<br><font size=2 face="sans-serif">Chris Cureau</font>
<br>
<br><font size=2 face="sans-serif">code: (line number prefixes...)</font>
<br>
<br><font size=2 face="sans-serif">103: file_system_type = record</font>
<br><font size=2 face="sans-serif">104: name
: string[20];</font>
<br><font size=2 face="sans-serif">105: fs_flag
: dword;</font>
<br><font size=2 face="sans-serif">106: read_super
: function (sb : P_super_block_t) : P_super_block_t;</font>
<br><font size=2 face="sans-serif">107: next
: ^file_system_type;</font>
<br><font size=2 face="sans-serif">108: end;</font>
<br>
<br><font size=2 face="sans-serif">error:</font>
<br>
<br><font size=2 face="sans-serif">Compiling kernel/main.pp</font>
<br><font size=2 face="sans-serif">Free Pascal Compiler version 2.0.0 [2005/09/09]
for i386</font>
<br><font size=2 face="sans-serif">Copyright (c) 1993-2005 by Florian Klaempfl</font>
<br><font size=2 face="sans-serif">Target OS: Linux for i386</font>
<br><font size=2 face="sans-serif">Compiling ./src/kernel/main.pp</font>
<br><font size=2 face="sans-serif">fs.inc(107,37) Error: Type "file_system_type"
is not completely defined</font>
<br><font size=2 face="sans-serif">mm.inc(31,34) Error: Type "T_page_desc"
is not completely defined</font>
<br><font size=2 face="sans-serif">mm.inc(58,25) Error: Type "mmap_req"
is not completely defined</font>
<br><font size=2 face="sans-serif">mm.inc(59,25) Error: Type "mmap_req"
is not completely defined</font>
<br><font size=2 face="sans-serif">process.inc(109,35) Error: Type "pid_table_struct"
is not completely defined</font>
<br><font size=2 face="sans-serif">main.pp(130,22) Error: Incompatible
types: got "SmallInt" expected "Pointer"</font>
<br><font size=2 face="sans-serif">main.pp(131,22) Error: Incompatible
types: got "LongWord" expected "Pointer"</font>
<br><font size=2 face="sans-serif">main.pp(207) Fatal: There were 7 errors
compiling module, stopping</font>
<br><font size=2 face="sans-serif">main.pp(207) Error: Compilation aborted</font>
<br>
<br>