Next: , Previous: , Up: Building Executable Programs with GNAT   [Contents][Index]

4.6 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').