Article View: comp.lang.modula2
Article #2666Re: Converting Modula-2 to C
From: Trond Solem
Date: Tue, 01 Aug 1995 12:04
Date: Tue, 01 Aug 1995 12:04
49 lines
1712 bytes
1712 bytes
agurski@BIX.com (agurski on BIX) writes: > 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 I think the complaint is about char no 1 on line 8. Check if your editor appends a EOF char.(ctrl-Z) Trond. Trond Solem //// MULTI-MASTER AS trond@multimaster.no (@ @) NORWAY ------------------------oOO--(_)--OOo------------------------
Technical Details
Message-ID:
<q2L69c1w165w@multimaster.no>Path:
arc1-ca.pugleaf.net!Norway.EU.net!mmaster!trondReferences:
<agurski.807261254@BIX.com>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!Norway.EU.net!mmaster!trond From: trond@multimaster.no (Trond Solem) Newsgroups: comp.lang.modula2 Subject: Re: Converting Modula-2 to C Message-ID: <q2L69c1w165w@multimaster.no> Date: Tue, 01 Aug 95 13:04:13 +0100 References: <agurski.807261254@BIX.com> Organization: MULTI-MASTER AS