gm2
[Top][All Lists]
Advanced

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

[Gm2] Importing from SYSTEM woes


From: john o goyo
Subject: [Gm2] Importing from SYSTEM woes
Date: Sun, 24 Oct 2004 14:09:42 -0400
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040616

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



reply via email to

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