CPS 100, Fall 2002, Compiling/Xemacs
To compile/edit on the acpub/duke Sun workstations, we recommend
that you use the xemacs editor and that you follow the steps below
to ensure that xemacs will automatically indent your code properly.
These steps also help ensure that when you type submit_cps100
this works, that you're running the right version of g++ (and Java in
other courses) and the right version of xemacs.
If you've customized your .login and .cshrc files yourself you may
not want to run the setup program described here. If you ran the setup
program in a previous course, like cps 006, you should run it again.
- Run the program ~rodger/bin/setup.cps100, that is type:
This will create a cps100 directory for you if you don't already have
one (if you already have one it's fine to run the setup program anyway).
You'll also be giving the TAs/Prof permission to read the files in this
The command also copies files from ~rodger/newuser into your
directory. It copies files like .emacs, .cshrc, .login, etc. You can
view these files by typing ls -a, you need the -a option since
these are so-called "dot" files and don't show up when you type 'ls'.
- You should run xemacs (type xemacs at a prompt) and then try
editing a C++ program. If you type escape-X version (that's M-x version
in emacs-speak) in emacs you should see some form of version 21.
- If something doesn't work, post news or ask a UTA/TA.
Susan H. Rodger
Last modified: Tue Jan 15 10:28:53 EST 2002