Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!uunet!mcsun!ukc!axion!rtf.bt.co.uk!traub From: traub@rtf.bt.co.uk (Michael Traub) Newsgroups: comp.binaries.ibm.pc.d Subject: Re: DOS gcc (dj1bin) problems Message-ID: <1991Feb27.093243.5606@rtf.bt.co.uk> Date: 27 Feb 91 09:32:43 GMT References: <1991Feb21.195421.15820@cs.UAlberta.CA> Organization: British Telecom Customer Systems, Brighton, UK Lines: 32 In <1991Feb21.195421.15820@cs.UAlberta.CA> wong@scapa.cs.UAlberta.CA (Brian Wong) writes: >Hi, I recently download dj1bin (36 parts) from >c.b.i.p. I have 2 questions: >1. I use 'gcc c.c' on my 386 with DOS 4.01 and the compiler > comes up with the error message: > d:\gcc\cpp: d:\/ccAA_AAA.cpp: access denied > What can I do to fix this? Most likely you have your TMP environment variable set to d:\. This hurts gcc in two ways: 1. It prefers unix style slashes, 2. It seems to add a slash to the front of temporary filenames (not entirely sure about this as I don't have the sources) So to solve this problem: Set TMP=d: should do the trick. Don't try setting GCCTMP as TMP over-rides this (even though the docs indicate otherwise). Setting TMP to d: shouldn't break any of your DOS software either. Michael Traub BT Customer Systems, Brighton Systems Centre. traub@rtf.bt.co.uk