From: "Damian Yerrick" Newsgroups: comp.os.msdos.djgpp Subject: Re: Can I "alias" gxx with g++ in DOS/DJGPP? Date: Tue, 31 Aug 1999 00:26:30 -0500 Organization: Rose-Hulman Institute of Technology Lines: 47 Message-ID: <7qfp4c$g67$1@solomon.cs.rose-hulman.edu> References: <37ca3358 DOT 4780950 AT netnews DOT worldnet DOT att DOT net> <7qdpbk$gij$1 AT nnrp1 DOT deja DOT com> NNTP-Posting-Host: yerricde.laptop.rose-hulman.edu X-Trace: solomon.cs.rose-hulman.edu 936077260 16583 137.112.205.227 (31 Aug 1999 05:27:40 GMT) X-Complaints-To: news AT cs DOT rose-hulman DOT edu NNTP-Posting-Date: 31 Aug 1999 05:27:40 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com > In article <37ca3358 DOT 4780950 AT netnews DOT worldnet DOT att DOT net>, > fakename AT worldnet DOT att DOT net (Joe Student) wrote: > > > Is there a way to configure DOS or DJGPP to recognize "g++" in place > > of "gxx"? Is there something similar to the UNIX command > > "alias g++ gxx"? > > You can copy gxx.exe to g++.exe, but this doubles the disk space MS-DOS's Command shell has several ways to alias: 1. Check out DOSKey. That's your 4DOS or bash-style way to alias a command. 2. Make a one line batch file, named G++.BAT, that reads @gpp.exe %1 %2 %3 %4 %5 %6 %7 %8 %9 (change gpp to gxx in old versions of gpp) into your \DJGPP\BIN folder. This will call GPP whenever you 3. Make a Macintosh-style alias. Create a Windows 9x shortcut to gpp.exe or gxx.exe and rename it g++ 4. Eduardo M Kalinowski wrote: > Or you can create a 2k stub > called g++.exe that runs gxx.exe . If you have the port > of GNU fileutils, you can use ln -s gxx.exe g++.exe, > as you would do in UNIX. If not, you can create one > anyway, just look at the FAQ for "symbolic links". > > -- > Eduardo M Kalinowski > mailto:ekalin AT iname DOT com > http://move.to/hp48g > ICQ 10944368 Damian E Yerrick mailto:comp DOT os DOT msdos DOT djgpp AT pineight DOT 8m DOT com http://come.to/yerrick ICQ 45269874 > Sent via Deja.com http://www.deja.com/ > Share what you know. Learn what you don't. Sent via Micr0$oft Outlook Express 5.0 It seems that Microsoft's best programs are the ones they give away. They only make money off the ----- Message truncated -----