Olivier PECHEUX wrote:
I want to use the unsigned integers in GPC. If I compile:
Program Unsigned; Var i:Word; Begin For i:=1 To 10 Do Writeln(i) End.
I have the error: Error:type name expected, identifier 'Word' given
If I replace Word by Integer, that's OK. I try Cardinal insted of Word, it does'n work. I'm using the GPC of gpc20b.zip and rhide on a windows machine
Please upgrade to a newer GPC, version 2.0 is very old. The last beta version (19990118) can be found at
ftp://agnes.dida.physik.uni-essen.de/gnu-pascal/current/
It supports both Word and Cardinal. They're equivalent -- which one you use is up to your preference.
Frank