Article View: comp.lang.modula2
Article #1429Compilier Problems
From: thomas s woiccak
Date: Sat, 01 Dec 1990 17:29
Date: Sat, 01 Dec 1990 17:29
67 lines
3145 bytes
3145 bytes
I need some help. I've been using the Top-Speed M2 compiler for a few months
now. I've enjoyed every aspect of it except for 2 excluded features. 1 is
that there is no command line compiler. I really don't like the editor provided
and would love to use my Emacs editor. The other is that all of the compiler
files and my own files must be in the same BLOODY directory as the compiler.
1) Does anyone know (if possible) how to set the compiler up to look in
sub-dirs for stuff?
Also, I heard that the FST M2 compiler had a command line compiler, SO I got
that one and installed it. It lets me use my editor and it allows for sub-dirs
and is very clean and appeared powerful. Of course, that view didn't last.
My first attempt at compiling a class project crashed on this compiler but
not on Top-Speed's. This is the problem:
e:\m20\mylib>mc project2 /c
Modula-2 compiler, Version 2.0a
(C) Copyright 1987, 1988 Fitted Software Tools. All rights reserved.
Memory model in use: LARGE
Output file format: M2O
Compiling project2.mod (the main module)
-> project2.MOD
Pass 1
-> e:\m20\m2lib\System.DEF
-> wordlist.DEF, Line 38, Pos 70 -> illegal procedure type
This is the procedure declaration:
DEFINITION MODULE wordlist;
CONST
MaxWordLength = 28; (* Maximum length of a list word. *)
MergeCharMax = "~"; (* Character higher than any word *)
(* char. *)
TYPE
List; (* The type of list. *)
WordArray = ARRAY[0..MaxWordLength] OF CHAR; (* Word type for each *)
(* list element. *)
.
.
.
PROCEDURE Contents (CurrentWord : List; OfKey : BOOLEAN) : WordArray;
. ^
. |
. This is where the
error points me to.
This procedure simply returns a string that is held one of 2 fields of
the CurrentWord record in a list.
2)WHAT IS THIS COMPILIER TRYING TO TELL ME?
I N E E D to get one of these compiliers to do what I want!
Can anyone help me with either problem?
If it's easier, E-Mail me at woiccak@acsu.buffalo.edu
Thanks,
TOM WOICCAK
--
===============================================================================
Thomas S. Woiccak, State Univ. of New York at Buffalo, Dept. of Comp. Sci.
INTERNET: woiccak@acsu.buffalo.edu
BITNET: woiccak%acsu.buffalo.edu@ubvm.bitnet
Technical Details
Message-ID:
<48608@eerie.acsu.Buffalo.EDU>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ub!acsu.buffalo.eduShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!rutgers!ub!acsu.buffalo.edu From: woiccak@acsu.buffalo.edu (thomas s woiccak) Newsgroups: comp.lang.modula2 Subject: Compilier Problems Message-ID: <48608@eerie.acsu.Buffalo.EDU> Date: 1 Dec 90 17:29:43 GMT Sender: news@acsu.Buffalo.EDU Distribution: usa Organization: SUNY Buffalo Lines: 67 Nntp-Posting-Host: autarch.acsu.buffalo.edu