Previous: Search Paths for gnatbind, Up: Binding with gnatbind [Contents][Index]
Here are some examples of gnatbind invovations:
gnatbind helloThe main program Hello (source program in
hello.adb
) is bound using the standard switch settings. The generated main program isb~hello.adb
. This is the normal, default use of the binder.gnatbind hello -o mainprog.adbThe main program Hello (source program in
hello.adb
) is bound using the standard switch settings. The generated main program ismainprog.adb
with the associated spec inmainprog.ads
. Note that you must specify the body here not the spec. Note that if this option is used, then linking must be done manually, since gnatlink will not be able to find the generated file.