[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Gm2] Can't compile
From: |
Anton Kazanov |
Subject: |
[Gm2] Can't compile |
Date: |
Thu, 8 Dec 2011 13:14:05 +0600 |
Hi everybody.
Just installed binaries of gm2 (ver 1.0.4) on my Debian squeeze and
try to compile simple program:
MODULE Simple;
FROM InOut IMPORT ReadCard, WriteString, WriteLn, WriteCard;
VAR x, y: CARDINAL;
BEGIN
WriteString('x='); ReadCard(x); WriteLn;
WriteString('y='); ReadCard(y); WriteLn;
WHILE x # y DO
IF x > y THEN x := x - y
ELSE y := y - x
END
END;
WriteString('='); WriteCard(x, 6); WriteLn;
END Simple.
I tried the following command:
# gm2 -o Simple Simple.mod
and I get this message:
"failed to find definition module InOut.def"
Ok. The command
# locate InOut.def
shows me this:
/opt/gm2/lib/gcc/x86_64-linux-gnu/4.1.2/gm2/logitech/InOut.def
/opt/gm2/lib/gcc/x86_64-linux-gnu/4.1.2/gm2/logitech/RealInOut.def
/opt/gm2/lib/gcc/x86_64-linux-gnu/4.1.2/gm2/ulm/InOut.def
/opt/gm2/lib/gcc/x86_64-linux-gnu/4.1.2/gm2/ulm/RealInOut.def
Therefore, this modules exist in my system.
Then I tried the command:
# gm2 -print-search-dirs
And get the following:
install: /opt/gm2/lib/gcc/x86_64-linux-gnu/4.1.2/
programs:
=/usr/lib/gm2/libexec/gcc/x86_64-linux-gnu/4.1.2/:/usr/lib/gm2/libexec/gcc/x86_64-linux-gnu/4.1.2/:/usr/lib/gm2/libexec/gcc/x86_64-linux-gnu/:/opt/gm2/lib/gcc/x86_64-linux-gnu/4.1.2/:/opt/gm2/lib/gcc/x86_64-linux-gnu/:/usr/libexec/gcc/x86_64-linux-gnu/4.1.2/:/usr/libexec/gcc/x86_64-linux-gnu/:/usr/lib/gcc/x86_64-linux-gnu/4.1.2/:/usr/lib/gcc/x86_64-linux-gnu/:/opt/gm2/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../x86_64-linux-gnu/bin/x86_64-linux-gnu/4.1.2/:/opt/gm2/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../x86_64-linux-gnu/bin/
libraries:
=/opt/gm2/lib/gcc/x86_64-linux-gnu/4.1.2/:/usr/lib/gcc/x86_64-linux-gnu/4.1.2/:/opt/gm2/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../x86_64-linux-gnu/lib/x86_64-linux-gnu/4.1.2/:/opt/gm2/lib/gcc/x86_64-linux-gnu/4.1.2/../../../../x86_64-linux-gnu/lib/:/opt/gm2/lib/gcc/x86_64-linux-gnu/4.1.2/../../../x86_64-linux-gnu/4.1.2/:/opt/gm2/lib/gcc/x86_64-linux-gnu/4.1.2/../../../:/lib/x86_64-linux-gnu/4.1.2/:/lib/:/usr/lib/x86_64-linux-gnu/4.1.2/:/usr/lib/
Well. The libraries path is correct (I think).
What am I doing wrong? Any assumptions?
Best Regards
Anton.
- [Gm2] Can't compile,
Anton Kazanov <=