# CHAPTER 7: Compile and Link

There are two steps involved in compiling an Empress 4GL application. The first step is the compile phrase, and the second is the link phase.

## 7.1 Compiling the Application

Applications may be compiled by the command:

        emp4gl -c database [application {, application}]

where:

`application` | may be the name of an application or a library. If an `application` is given it is compiled, if not, all applications and libraries in the database are compiled.

An application may also be compiled from within the Application Manager by choosing the appropriate menu item.

## 7.2 Linking the Application

Applications may be linked by the command:

        emp4gl -l database [ application{, application}]

Here `application` must be an application. If an `application` is given it is linked, if not, all applications in the database are linked.

An application may also be linked from within the Application Manager by choosing the appropriate menu item.