[gps-users] Error Message in project file
ldries46
bertus.dries at planet.nl
Thu Jun 28 13:21:17 CEST 2012
At first The project file is create by the Wizard New Project so every slsh
or backslash is not my input but created by the program.
Second I tied the with "Gtkada"but now the program is searching for an Empty
project. also when I substituted the total directory string that is the
case.
that means that the project file now looks like
with "D:\Program Files\GNAT\GtkADA";
or with "gtkada";
project Algemeen is
-- for Source_Dirs use (".\**", "D:\Program Files\GNAT\GtkADA\**",
"..\..\Standaarden\Standaard Packages\**");
for Source_Dirs use (".\**", "..\..\Standaarden\Standaard Packages\**");
for Object_Dir use "Build";
for Main use ("Algemeen.adb");
package Builder is
for Default_Switches ("ada") use ("-s", "-m", "-g");
end Builder;
package Compiler is
for Default_Switches ("ada") use ("-gnatf", "-gnato", "-fstack-check",
"-gnatE", "-g", "-gnat12");
end Compiler;
package Binder is
for Default_Switches ("ada") use ("-E", "-r", "-shared");
end Binder;
package Linker is
for Default_Switches ("ada") use ("-g", "-Wl,--gc-sections");
end Linker;
package Pretty_Printer is
for Default_Switches ("ada") use ("-c3", "-c5",
"--separate-loop-then");
end Pretty_Printer;
end Algemeen;
My error message now looks like
gprbuild -d -PE:\ada\project\Algemeen\empty.gpr -s -j4
gprbuild: project file "E:\ada\project\Algemeen\empty.gpr" not found in
.;;D:\Program Files\GNAT\2012\share\gpr;D:\Program Files\GNAT\2012\lib\gnat
Arnaud Charlet wrote:
>
>> I get the following error message in my project file. I dont knoe what is
>> wrong.
>> 1:9 duplicate unit "main"
>> 1:9 duplicate unit "parameters"
>>
>> I don't have these units.
>>
>> My project file is:
>>
>> project Algemeen is
>>
>> for Source_Dirs use (".\**", "D:\Program Files\GNAT\GtkADA\**",
>> "..\..\Standaarden\Standaard Packages\**");
>
> Using "D:\Program Files\GNAT\GtkADA\**" in your project file is wrong,
> you should instead use 'with "gtkada"' at the top oif your project.
>
> Also better for portability to use "./**" instead of ".\**" (and even
> better in general to specify an explicit list of directories, more
> efficient
> and more reliable than using wildcards and ending up with error messages
> like
> the above without knowing where these come from).
>
> Arno
> _______________________________________________
> gps-users mailing list
> gps-users at lists.adacore.com
> /no-more-mailman.html
>
>
--
View this message in context: http://old.nabble.com/Error-Message-in-project-file-tp34085217p34085674.html
Sent from the GNAT Programming Studio - User mailing list archive at Nabble.com.
More information about the gps-users
mailing list