To put together; to assemble; to make by gathering things from various sources.
Samuel Johnson compiled one of the most influential dictionaries of the English language.
To construct, build.
To use a compiler to process source code and produce executable code.
After I compile this program I'll run it and see if it works.
To be successfully processed by a compiler into executable code.
There must be an error in my source code because it won't compile.
To contain or comprise.
To write; to compose.