Put "{$X+}" in the source code, or pass '--extended-syntax' at the command line.
I have changed the Makefile (attached) to include the command line option --extended-syntax, but I still get the same error message when I compile:
$ make gpc -c p.p p.p: In main program: p.p:11: error: argument to `WriteLn' is of wrong type p.p:11: error: (Use `--cstrings-as-strings' to treat `CString' as a string.) p.p: At top level: p.p:15: error: syntax error before `more' make: *** [p.o] Error 1
The manual entry for --extended-syntax is "--extended-syntax same as --ignore-function-results --pointer-arithmetic --cstrings-as-strings -Wno-absolute (same as {$X+}). "
so presumably I don't need the --cstrings-as-strings? Can you spot what's wrong?
Many thanks,
Chris.
On 29 Dec 2005 at 14:35, Chris Hicks wrote:
Put "{$X+}" in the source code, or pass '--extended-syntax' at the command line.
I have changed the Makefile (attached) to include the command line option --extended-syntax, but I still get the same error message when I compile:
$ make gpc -c p.p p.p: In main program: p.p:11: error: argument to `WriteLn' is of wrong type p.p:11: error: (Use `--cstrings-as-strings' to treat `CString' as a string.) p.p: At top level: p.p:15: error: syntax error before `more' make: *** [p.o] Error 1
Seems to me that the compiler is not getting the argument. I don't know much about make files (I don't use them myself), so I can't comment on the make file. Is there any reason why you can't put {$X+} in the source file?
Best regards, The Chief -------- Prof. Abimbola A. Olowofoyeku (The African Chief) web: http://www.greatchief.plus.com/