Collecting photos for a photo album is an example of to compile.
Compile an encyclopedia.
Samuel Johnson compiled one of the most influential dictionaries of the English language.
After I compile this program I'll run it and see if it works.
There must be an error in my source code because it won't compile.