gm2
[Top][All Lists]
Advanced

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

Re: [Gm2] Importing from SYSTEM woes


From: Gaius Mulley
Subject: Re: [Gm2] Importing from SYSTEM woes
Date: 25 Oct 2004 10:45:35 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

john o goyo <address@hidden> writes:

> Greetings:
> 
> The following does not compile; gm2 does not seem to accept
> the imports from SYSTEM.  Is this a bug or am I forgetting
> something?
> 
> 
> ===[problems.mod begins]===
> MODULE problems;
> (*
>   * Unrecognized keywords.
>   *)
> 
> FROM SYSTEM IMPORT CAST;
> 
> VAR
>      c :CHAR;
>      x :INTEGER;
> BEGIN
>      x := 20H;
>      c := CAST(CHAR, x)
> END problems.
> ===[problems.mod ends]===
> 
> ===[compilation log begins]===
> gm2 -c problems.mod
> 
> /opt/build/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/gm2/pim/SYSTEM.def:46:the \
> following symbols are unknown at the end of module problems when requested \
> by another modules import (symbols have not been EXPORTed by the \
> appropriate definition module)
> /opt/build/lib/gcc-lib/i686-pc-linux-gnu/3.3.2/gm2/pim/SYSTEM.def:46:the \
> following unknown symbols in module SYSTEM were unresolved
> problems.mod:8:unknown symbol (CAST)
> problems.mod:8:unknown symbol (CAST) found
> problems.mod:14:type incompatibility, hint the types should be
> converted or coerced
> problems.mod:14:the two types are: INTEGER and CHAR
> problems.mod:14:function CAST is undefined
> problems.mod:14:the following unknown symbols in module problems were locally 
> used
> problems.mod:8:unknown symbol (CAST)
> ===[compilation log ends]===
> 
> 
> Substitute LOC for CHAR and one has similar problems in that LOC is not found.
> 
> Sincerely,
> john

Hi John,

it should work when supplying the -Wiso flag,

Gaius



reply via email to

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