Giorgio
Giorgio

Reputation: 5183

Importing modules with gm2

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?

Upvotes: 1

Views: 807

Answers (1)

Brian Knoblauch
Brian Knoblauch

Reputation: 21389

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.

Upvotes: 1

Related Questions