[comp.sys.amiga] Lattice 3.10 compiler

pej@cuuxb.UUCP (jatkowski) (12/14/86)

I received my 3.10 lattice compiler the other day and have been having
frequent consultations with the guru ever since. Dave Wecker's vt100 2.2
bites the dust trying to fopen the init script. Since I can't get my hands
on the 1.2 workbench I thought maybe the problem was in the libraries.
After re-linking with the 3.03C libraries things seem better (It doesn't
die until I try to Ascii Capture to prt:).

Anybody got any ideas? (Please no Manx comments!!!).
BTW, I have a bug report in at Lattice, I'll post the/any results.


					Paul Jatkowski
					{ihnp4!}cuuxb!pej

beatyr@pur-ee.UUCP (Robert Beaty) (12/14/86)

In article <974@cuuxb.UUCP> pej@cuuxb.UUCP (jatkowski) writes:
>I received my 3.10 lattice compiler the other day and have been having
>frequent consultations with the guru ever since. Dave Wecker's vt100 2.2
>bites the dust trying to fopen the init script. Since I can't get my hands
>on the 1.2 workbench I thought maybe the problem was in the libraries.
>After re-linking with the 3.03C libraries things seem better (It doesn't
>die until I try to Ascii Capture to prt:).
>
>Anybody got any ideas? (Please no Manx comments!!!).
>BTW, I have a bug report in at Lattice, I'll post the/any results.
>
>
>					Paul Jatkowski
>					{ihnp4!}cuuxb!pej

	I spent the entire day figuring this one out. I finally got it!
In Lattice 3.10, there are AmigaDOS functions for opening, reading, and
closing AmigaDOS files. Two of these are called dopen() and dclose().
	In the file expand.c there are three (3) routines: dopen(), dnext()
and dclose(). These are supposed to be for directories. There seems to
be a conflict in the calling functions and fopen() must use part of the
AmigaDOS dopen() code. When this is redefined you get Guru's. The fix is
simple! Get into your favorite editor and do a global search and replace
of dopen() with diropen(), dnext() with dirnext() and dclose() with
dirclose(). Recompile and there should be no problem.
	If this does not work, let me know (because I have gotten it to
work) I will go through all the files and make extensive diffs. This
should work though.

				Bob
----------
   ... ihnp4!pur-ee!beatyr      <- usenet
  ... beatyr@ed.ecn.purdue.edu  <- arpa-net
   ... beatyr@pur-ee.UUCP       <- UUCP
----------