gm2
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Yet another simple program doesn't compile


From: Fischlin Andreas
Subject: Re: Yet another simple program doesn't compile
Date: Tue, 6 Apr 2021 11:52:45 +0000

Dear Xavier,

This module should work. However, I recommend to use capitals for procedures, module, and type identifiers. Variables and constants should be start with lower case.

Sincerely yours,
Andreas Fischlin



ETH Zurich
Prof. em. Dr. Andreas Fischlin
IPCC Vice-Chair WGII
Systems Ecology - Institute of Biogeochemistry and Pollutant Dynamics
CHN E 24
Universitaetstrasse 16
8092 Zurich
SWITZERLAND


+41 44 633-6090 phone
+41 44 633-1136 fax
+41 79 595-4050 mobile

             Make it as simple as possible, but distrust it!
________________________________________________________________________









On 05/04/2021, at 22:47, Xavier <xbelanch@protonmail.com> wrote:

Yello Modula-2 mailing list

Trying to play some Modula-2 programming after several years I found this awesome project. I try to compile a simple hello.mod example program but I get this linker errors:

$ cat minimal.mod
MODULE minimal ;

BEGIN

END minimal.

$ gm2 minimal.mod
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/m2/m2pim/libm2pim.so: undefined reference to `RTco_select'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/m2/m2pim/libm2pim.so: undefined reference to `RTco_initSemaphore'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/m2/m2pim/libm2pim.so: undefined reference to `RTco_wait'
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/10/m2/m2pim/libm2pim.so: undefined reference to `RTco_signal'
collect2: error: ld returned 1 exit status

I read (https://lists.nongnu.org/archive/html/gm2/2020-11/msg00000.html) that this issue was fixed I guess.

I use gcc version 10.2.1 20210110 (Debian 10.2.1-6)
$ gm2 --version
gm2 (Debian 10.2.1-6) 10.2.1 20210110

Thanks in advance,

Xavier


Sent with ProtonMail Secure Email.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]