Presentation is loading. Please wait.

Presentation is loading. Please wait.

Using emacs and G++ at U. W.

Similar presentations


Presentation on theme: "Using emacs and G++ at U. W."— Presentation transcript:

1 Using emacs and G++ at U. W.
Use Linux machines in labs emacs : A text editor G++ : A compiler for C++

2 Linux machines at U. W. Machine Names: Ceylon, Sumatra, Fiji, Tahiti
Access Use X-terminals in back of Sieg 329 (click on one of the linux machine names) Use Windows machine, ask someone in lab for help

3 Useful UNIX commands Change directory: cd somedirectory
Go up one directory: cd .. List files in curr directory: ls New command window: xterm & Make directory: mkdir someDirectory Move file: mv oldFile newFile Copy file: cp oldFile copyOfFile

4 emacs Command line: Exit emacs: Ctrl-X Ctrl-C Save: Ctrl-X Ctrl-S
emacs <filename.C> & Exit emacs: Ctrl-X Ctrl-C Save: Ctrl-X Ctrl-S Move around/delete: arrow keys, del key emacs likes to match parentheses automatically

5 G++ Write a C++ module using emacs, save it
E.g. multiply.C (capital is important - multiply.cpp also works) Command line: g++ -o multiply multiply.C Run your program: ./multiply

6 More help man g++ man emacs Other students
(GNU Software Info) man g++ Press Q key to stop man emacs Other students


Download ppt "Using emacs and G++ at U. W."

Similar presentations


Ads by Google