``joints.c'' should have compiled without any problems. But things won't
always be so easy! What might happen to prevent the compiler from smoothly
translating your C program into machine language?
Click here for the answer.
Let's try an experiment. Go into the Emacs buffer that contains the C program
and delete the semicolon at the end of the statement
pi = 3.14159;
Now try compiling the program. What happens?
Click here for the answer.
Tell Emacs to save your changes. After you save the file, Emacs will proceed
with compilation. What happens now?
Click here for the answer.
You need to repair the damage that you inflicted on the sample program before
you can run it again.
Now is a good time to learn a useful feature of Emacs. To repair the damage,
first be sure that the edit point is in the ``joints.c'' buffer. Then
select the Undo item in the Edit menu. This will undo your last
editing operation. Undo is a particularly useful thing when you make a mistake
that deletes a large portion of your file. Remember it!
Use undo to fix the sample program. Save your changes and verify that you can
once again compile and run the program.
Eric N. Eide
Hamlet Project
Department of Computer Science
University of Utah