gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] Can't compile


From: Gaius Mulley
Subject: Re: [Gm2] Can't compile
Date: Fri, 09 Dec 2011 02:02:16 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux)

Gaius Mulley <address@hidden> writes:

> Anton Kazanov <address@hidden> writes:
>
>> 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.
>
> Hi Anton,
>
> you need to request that gm2 also search the logitech libraries, so:
>
> gm2 -o Simple -fpim,logitech Simple.mod

gm2 -o Simple -flibs=pim,logitech Simple.mod

[edit]

>
> should do the trick.
>
> regards,
> Gaius



reply via email to

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