From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: DJGPP ? Date: Tue, 27 May 1997 22:08:42 +0000 Organization: Two pounds of chaos and a pinch of salt Lines: 21 Message-ID: <338B5B6A.2D3B@cs.com> References: <199705272157 DOT AA261540224 AT typhoon DOT rose DOT hp DOT com> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp219.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Andrew Crabtree wrote: > > Does anyone know offhand where the support for the > > set DJGPP=...djgpp.env > > is in the gcc code? I don't want anyone to spend time on it > (i've done a grep for it in the source already), just > if you could narrow my search to a few files. It's in src/libc/crt0/c1oadef.c: the __crt0_load_environment_file() function. All it does is a getenv on "DJGPP" and then processes the indicated file. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | mailto:fighteer AT cs DOT com | | * Proud user of DJGPP! * | http://www.cs.com/fighteer | | ObJoke: If Bill Gates were a robber, not only would he | | shoot you, but he'd send you a bill for the bullets. | --------------------------------------------------------------------- chkdsk"); return 0; } compiled it as c.exe. when run in a DOS box, it produces the message: C:\djgpp\c>c Volume LEEADR7 created 03-04-1997 2:17p Volume Serial Number is 2C5D-14E1 Processing cannot continue - File allocation table bad invoking chkdsk on the command line in the same dos box gives the usual output. i will try the same with VC++ 4.0 at home. if i remember the original post correctly, his problem was that chkdsk would not be invoked at all. on the machine i tried this on at least, it will be invoked but gives and error. -- Sinan.