03.10.2024 21:27, Benjamin Kowarsch пишет:
forgot to use the "reply to all" option.
---------- Forwarded message ---------
From: Benjamin Kowarsch
Date: Fri, 4 Oct 2024 at 03:25
Subject: Re: Import procedure NEWPROCESS
To: Alexey Ulasevich
On Thu, 3 Oct 2024 at 23:36, Alexey Ulasevich wrote:
03.10.2024 08:46, Jack Perry пишет:
...and judging from the modula-2 reference at
https://www.modula2.org/reference/isomodules/isomodule.php?m=SYSTEM.DEF
....there is indeed no NEWPROCESS procedure in SYSTEM.
Correct. In PIM, coroutines were provided by pseudo-module SYSTEM, and in ISO
this was changed.
Ok.Thanks. But when I use '-fpim' for compiling I get also get errors:
alex@aurum:~/m2propbe/probes$ gm2 -g -fsoft-check-all -Wall process_probe1.mod
-o process_probe1
/usr/lib/gcc/x86_64-linux-gnu/12/m2/m2pim/SYSTEM.def:212:11: error: In
definition module ‘SYSTEM’: the symbols are unknown at the end of module
‘process_probe1’ when requested by another modules import (symbols have not
been exported by the appropriate definition module)
212 | END SYSTEM.
| ^
/usr/lib/gcc/x86_64-linux-gnu/12/m2/m2pim/SYSTEM.def:212:11: error: the
following unknown symbols in module ‘SYSTEM’ were unresolved: PROCESS,
TRANSFER and NEWPROCESS
process_probe1.mod:4:20: error: unknown symbol ‘NEWPROCESS’
4 | FROM SYSTEM IMPORT NEWPROCESS, TRANSFER, PROCESS;
| ^~~~~~~~~~
process_probe1.mod:4:20: error: unknown symbol 'NEWPROCESS' found
process_probe1.mod:4:32: error: unknown symbol ‘TRANSFER’
4 | FROM SYSTEM IMPORT NEWPROCESS, TRANSFER, PROCESS;
| ^~~~~~~~
process_probe1.mod:4:32: error: unknown symbol 'TRANSFER' found
process_probe1.mod:4:42: error: unknown symbol ‘PROCESS’
4 | FROM SYSTEM IMPORT NEWPROCESS, TRANSFER, PROCESS;
| ^~~~~~~
process_probe1.mod:4:42: error: unknown symbol 'PROCESS' found
Module SYSTEM with NEWPROCESS and TRANSFER still in gm2, it's placed in
'/usr/lib/gcc/x86_64-linux-gnu/12/m2/m2cor'. So, how to use it?
Best regards,
Aleksey Ulasevich