From: "Keith Brower" Newsgroups: comp.os.msdos.djgpp References: Subject: Re: Bad Command or File Name within rhide.... Lines: 86 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Tue, 17 Sep 2002 01:37:47 -0400 NNTP-Posting-Host: 24.47.71.121 X-Trace: news4.srv.hcvlny.cv.net 1032241080 24.47.71.121 (Tue, 17 Sep 2002 01:38:00 EDT) NNTP-Posting-Date: Tue, 17 Sep 2002 01:38:00 EDT Organization: Optimum Online To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com "Keith Brower" wrote in message news:E6yh9.1184$X7 DOT 21397 AT news4 DOT srv DOT hcvlny DOT cv DOT net... > I installed the latest zip files, but I still cannot seem to get rhide to > compile for me. I keep getting the following messages: > > Compiling: Chap01.cpp > bad command or file name > no errors > > ...and the program does not compile. When I use gcc (or gpp) from the > command line, everything seems to work ok. Below is an example session to > demonstrate OS and compiler versions and environment settings. Can anyone > shed some light on this problem? > I also get a memory manager error the first time I run rhide (as you can see > below). > > Thank you in advance for any assistance you can provide. > Keith Brower > > ------------------------------------------------------ > Microsoft Windows XP [Version 5.1.2600] > (C) Copyright 1985-2001 Microsoft Corp. > c:\djgpp>cd class > c:\djgpp\class>dir > > Directory of C:\DJGPP\Class > > 09/11/2002 04:20 AM . > 09/11/2002 04:20 AM .. > 09/16/2002 11:07 PM 735 Chap01.cpp > 09/17/2002 12:00 AM 11,554 rh_opt.gpr > 09/17/2002 12:00 AM 3,124 rh_opt.gdt > 09/11/2002 04:24 AM 12,324 rh_opt.mak > > C:\DJGPP\Class>set dj > DJDIR=C:/DJGPP > DJGPP=C:/DJGPP/DJGPP.ENV > > C:\DJGPP\Class>path > PATH=C:\WINDOWS\system32;C:\WINDOWS;C:\DJGPP\bin > > C:\DJGPP\Class>rhide > > ERROR: An Extended Memory Manager is already installed. > XMS Driver not installed. > > This is RHIDE 1.4.9. Copyright (c) 1996-2000 by Robert H÷hne > (Sep 3 2001 21:57:52) > > C:\DJGPP\Class>gcc -v > Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.953/specs > gcc version 2.95.3 20010315/djgpp (release) > > C:\DJGPP\Class>exit > > Persistence pays off!! After spending 2 full evenings reading FAQs, READMEs and newsgroup postings, I thought I had exhausted all possibilities, so I posted the request for help above. So, wouldn't you know it, I proceeded trying to figure out the problem on my own and delved into the wonderful world of Windows XP to see why rhide was not paying attention to the environment variables. I started playing with a rhide.pif file I had created a couple of days ago. What I didn't know at the time was that, by default, XP PIF files create their own environment from: c:\windows\system32\config.nt c:\windows\system32\autoexec.nt Which is nice when you have some legacy DOS apps that won't run normally. When I discovered this, I simply opened AUTOEXEC.NT, added the appropriate path and DJGPP environment variables and 20 minutes after posting my plea for help, rhide was finally able to find the compiler!! Apparently, even when you launch a DOS application from XP's cmd.exe shell, an associated PIF file will still invoke and override the current environment settings. I probably should delete the PIF file because it is more trouble than it is worth, but its too late tonight to start opening up more cans of worms. I'll pass the results on when I get around to deleting it. Keith Brower