gm2
[Top][All Lists]
Advanced

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

Simple program doesn't compile


From: Peter Wiehe
Subject: Simple program doesn't compile
Date: Sun, 1 Nov 2020 01:33:50 +0100

Hello GNU Modula-2 list!

I have the following program source code:

------------------
MODULE Test;

BEGIN

END Test.
------------------

It is in test.mod. I type in the shell:
gm2 -g test.mod

Then I get the following output:
-----------------------------------
/usr/bin/ld: /tmp/ccePqjIl.a(wayfarer1_m2.o): in function `init(int, char**)':
/home/peter/Schreibtisch/dev/Wayfarer 1/wayfarer1_m2.cpp:69: undefined 
reference to `_M2_Wayfarer1_init'
/usr/bin/ld: /tmp/ccePqjIl.a(wayfarer1_m2.o): in function `finish()':
/home/peter/Schreibtisch/dev/Wayfarer 1/wayfarer1_m2.cpp:80: undefined 
reference to `_M2_Wayfarer1_finish'
/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 use gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0
and gm2 (Ubuntu 10.2.0-5ubuntu1~20.04) 10.2.0

What can I do to get the program compiled?

Greetings
Peter



reply via email to

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