Next: , Previous: Binding with gnatbind, Up: Building Executable Programs with GNAT


4.5 Linking with `gnatlink'

This chapter discusses `gnatlink', a tool that links an Ada program and builds an executable file. This utility invokes the system linker (via the `gcc' command) with a correct list of object files and library references. `gnatlink' automatically determines the list of files and references for the Ada part of a program. It uses the binder file generated by the `gnatbind' to determine this list.

Note: to invoke gnatlink with a project file, use the gnat driver (see The GNAT Driver and Project Files).