Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cwjcc!gatech!psuvax1!psuvax1.cs.psu.edu!ehrlich From: ehrlich@psuvax1.cs.psu.edu (Daniel Ehrlich) Newsgroups: comp.sys.ibm.pc.rt Subject: How to have multiple High-Cs under AOS Keywords: High-C, 2.1d, 2.1n, 2.1s Message-ID: <1989Sep20.185817.25261@psuvax1.cs.psu.edu> Date: 20 Sep 89 18:58:17 GMT Sender: ehrlich@psuvax1.cs.psu.edu (Daniel Ehrlich) Reply-To: ehrlich@psuvax1.cs.psu.edu (Daniel Ehrlich) Organization: Department of Computer Science, Penn State University Lines: 40 What with the multitude of versions of High-C for IBM RT under AOS I would like to offer the following that allows one to have any and all versions installed and usable at the same time. One needs to create a few directories in /usr/lib to hold the different passes of the different versions of High-C. Try the following: # cd /usr/lib # mkdir hc2.1d hc2.1n hc2.1s After creating these directories put the passes of the different versions into the appropriately named directories. Create a shell script in /bin for each of different versions: # cd /bin # mv hc hc.real # echo 'exec hc.real -B/usr/lib/hc2.1d/ $@' > hc2.1d # echo 'exec hc.real -B/usr/lib/hc2.1n/ $@' > hc2.1n # echo 'exec hc.real -B/usr/lib/hc2.1s/ $@' > hc2.1s # chmod 755 hc2.1? Then create a sym link to your favorite flavor of High-C: # ln -s hc2.1n hc Now one can use the appropriate version depending on what bug your code tickles in the High-C compiler. :-) Dan Ehrlich | "A message is not a message until the The Pennsylvania State University | rules for interpreting it are in the Department of Computer Science | hands of the reciever." University Park, PA 16802 | --Apollo Belvedere Smith -- Dan Ehrlich | "A message is not a message until the The Pennsylvania State University | rules for interpreting it are in the Department of Computer Science | hands of the reciever." University Park, PA 16802 | --Apollo Belvedere Smith