|
|

You will see the following error message near the bottom of the *compilation* buffer:
Undefined first referenced symbol in file Greatest_Common_Divisor(Integer, Integer)Euclid.oHere a linking error was detected. In case of linking errors, the linker cannot specify the line number in your program where the error was detected. The most common type of linker error, "undefined symbol", occurs when you are calling a function whose body is not defined.
Examine the comment that specifies the requires and ensures clauses
of the Greatest_Common_Divisor function. The comment is not terminated
by */. The compiler thought that everything up to the */
at the end of the function body was part of the comment. But the compiler
did not detect this error! The linker detected the error, and produced
an error message indicating that it has failed to find the body of the
function.
|
Now that you have corrected the error, you are ready to recompile the program. |

The compiler and linker will display some messages indicating their status, and finally you will see the message:
==== All executables rebuilt ====This indicates that there are no more compiler or linker errors in your program.
| Previous | Table of Contents | Continue |