Step 9 of the GPS tutorial states
It is now time to run the application: select the menu Build->Run->sdc, which will open a dialog window. In the text input field (selected by default), press the right arrow key and then insert input.txt: this is the name of a text file that will be passed as argument to the sdc program.The text input should now read: %E input.txt and the full command that will be executed is displayed underneath: .../gps/tutorial/obj/sdc input.txt
In actuality, doing this produces an error:
gprbuild: "c:\gnat\2015\share\examples\gps\tutorial\obj\sdc" is not a source of any project.
What is the syntax for passing command-line arguments for the built executable?
I tried various combinations of macros and parameters to gprbuild. The default by following the instructions is %builder -d %eL -P%PP %X %T %E input.txt
. I made sure "input.txt" existed in the directory %E refers to. I can run sdc input.txt
on the command line and that works fine.