Question

I am doing a little programming exercise in Modula2. I am using the gm2 compiler on Ubuntu Linux (10.04).

I have gotten some code to compile but I am unable to import certain modules which, to my understanding, should be included in the compiler distribution. For example, if I try to import from the TimeDate module

FROM TimeDate IMPORT Time, GetTime;

which is documented here, I get the error:

$ gm2 -flibs=pim -c SortUtil.mod

failed to find definition module TimeDate.def

According to the documentation, the option -flibs=pim should give access to the TimeDate module (which is part of the PIM libraries).

Does anyone have any experience with this compiler? Do I need some extra command-line parameters or do I need to install some extra packages?

Was it helpful?

Solution

I set up a test system and was able to duplicate your problem. Use "-flibs=pim,logitech"... That worked for me and let me compile a basic test app without throwing the error about a missing definition file.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top