Path: utzoo!attcan!uunet!mcvax!enea!erix!eua4.ericsson.se!tmpspa From: tmpspa@eua4.ericsson.se (Stefan Parmark) Newsgroups: comp.sys.amiga Subject: Re: Problems with Lattice C, part II: technical difficulties Message-ID: <1762@erix.ericsson.se> Date: 23 Aug 88 08:20:43 GMT References: <3707@bsu-cs.UUCP> Sender: news@erix.ericsson.se Reply-To: tmpspa@eua4.ericsson.se (Stefan Parmark) Organization: Ellemtel Utvecklings AB, Stockholm, Sweden Lines: 34 In article <3707@bsu-cs.UUCP> cfchiesa@bsu-cs.UUCP (Christopher Chiesa) writes: > > - ED the source file in RAM:, to give the include-file specs full > path names, i.e. replace "#include /exec/types.h" with "#include > lattice_c:include/exec/types.h" etc. If I don't do this, Phase 1 > of the compiler tells me "file not found" on EVERY #include. > > - CD to the Lattice_C:include directory - if I don't do this, then > even the "corrected" #includes, above, are still unable to find the > files that they, in their turn, #include for their needs. > I don't know if this goes for 3.03 too, but it works with 3.10 and 4.0. In my startup-sequence I have the statement 'Assign INCLUDE: DF1:include'. In my source code I have a '#include '. You remembered the '<' and the '>', didn't you? I think I recall that lc and lc1 could be called with the flag -i to specify an include directory. A simple lc file.c would probably not find the include files, but a lc -iINCLUDE: file.c would. >program from the June '88 issue of AmigaWorld, and the 'alink' step claimed >it couldn't find "_ CloseScreen", and refused to generate an executable until >I deleted the "CloseScreen(Scrn)" statement from the source, and recompiled. Well, _ CloseScreen isn't a valid function, but _CloseScreen is. I think there is a mysterious character before the C in CloseScreen(), that looks like a blank but isn't. I don't know if shift-space gives another character than space. It is very easy to press the shift key a little too soon. I suggest you try again, this time NOT pressing shift and space simultaneously. Why don't you write a file which contains all the commands and execute it, so you don't have to retype everything every time you compile. /Stefan Parmark