Article View: comp.lang.modula2
Article #2663Re: Converting Modula-2 to C
From: agurski on BIX
Date: Tue, 01 Aug 1995 07:14
Date: Tue, 01 Aug 1995 07:14
38 lines
1346 bytes
1346 bytes
simon@callan.demon.co.uk (Simon Callan) writes:
>I'm not sure if this is the best newsgroup for this, but since I got the
>info from the FAQ, it seem reasonable.
>I am trying to convert a large amount o2 Modula-2 to C, using the MTC
>program running under DOS and DJGPP. I have compiled MTC, with no
>problems, but I am having problems running it.
>I have a simple test program :
>IMPLEMENTATION MODULE test;
>VAR
> A : CARDINAL;
>BEGIN
> A:=1;
>END test.
>When I try to run MTC on this, I get the following result:
>D:\TEST>mtc test.mod
>go32 version 1.12.maint1 Copyright (C) 1994 DJ Delorie
>test.mod:
> 8, 1: Error illegal character
> 1 error(s)
>D:\TEST>
>does anyone know what is going wrong with this?
>Thanks in advance
>Simon Callan
----------------------------------
Assuming that your test program is a "main" program, you might consider
trying without the word "IMPLEMENTATION" on line 1.
-- Aron
Technical Details
Message-ID:
<agurski.807261254@BIX.com>Path:
arc1-ca.pugleaf.net!BIX.com!agurskiReferences:
<19950731.232859.34@callan.demon.co.uk>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!BIX.com!agurski From: agurski@BIX.com (agurski on BIX) Newsgroups: comp.lang.modula2 Subject: Re: Converting Modula-2 to C Date: 1 Aug 95 07:14:14 GMT Organization: Delphi Internet Services Corporation Message-ID: <agurski.807261254@BIX.com> References: <19950731.232859.34@callan.demon.co.uk> NNTP-Posting-Host: bix.com