A newcomer question about -gnatA
Philippe Laval <[email protected]>
| Newsgroups | gmane.comp.ide.gps.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Using GPS with GNAT 3.15p to build a program which uses a gnat.adc file, I notice that the build is systematically made with the switch -gnatA added for each file, like this: gcc -c -g -o e:\ada\gnat\rts3-oo\exec\transform_config_file.o -gnatecgnat.adc -O3 -gnatf -g -gnatwpr -gnatyb -gnatA e:\ada\gnat\rts3-oo\sources\transform_config_file.adb. I didn't found how to get rid of this switch. Nowhere I requested this switch, I just put in Properties>General>Names & Location> External configuration>Local pragmas: gnat.adc And the GNAT User Guides says '"-gnatA means: If a gnat.adc file is present, it will be ignored". ??? -PS.: To be exact, this applies to the "Current directory". What is that? With adagide I had only a Sources directory (where are my *ad? files), and an Exec directory, where I put the gnat.adc file, the file read by the program and which was filled with the *.o and *.ali files together with the resulting executable. All files created by the program without specifying a path were also put in the Exec directory. Now with GPS there is a "Project directory", where of course resides the *.gpr file. I discover that files read and written by the program without specifying a path should also be or end in the Project directory... I must add that I tried to move the gnat.adc file in each of the 3 directories, always ending with a -gnatA switch added to the compilations. -Another puzzling question: while with the GPS Editor it is easy to indent a block (with CTRL-Tab), how to unindent it? (which is easy with adagide)? Happy New (Ada05) Year :-) -------------------------------------------------------------------- Philippe Laval Observatoire océanologique - Station zoologique B.P. 28 - 06234 Villefranche-sur-Mer Cedex (France) [email protected] Home page: http://www.obs-vlfr.fr/~laval _______________________________________________ gps-users mailing list [email protected] http://lists.adacore.com/mailman/listinfo/gps-users