* Cannot Add adb or ads file to project in GPS 6.0.1
@ 2015-06-29 10:15 yamenajjour
2015-06-29 11:03 ` Mark Lorenzen
` (3 more replies)
0 siblings, 4 replies; 7+ messages in thread
From: yamenajjour @ 2015-06-29 10:15 UTC (permalink / raw)
Hi All ,
After creating a project with the following entries in GPS
project Hofstader is
for Source_Dirs use ("src/**");
for Object_Dir use "obj";
for Exec_Dir use "output";
for Main use ("main.adb");
end Hofstader;
i tried to add an already existing file whose suffix is adb , unfortunately i am getting always the following error
hofstader.gpr:1:09: language unknown for "stader.adb"
Any idea what could be the reason
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Cannot Add adb or ads file to project in GPS 6.0.1
2015-06-29 10:15 Cannot Add adb or ads file to project in GPS 6.0.1 yamenajjour
@ 2015-06-29 11:03 ` Mark Lorenzen
2015-06-29 11:20 ` Simon Wright
` (2 subsequent siblings)
3 siblings, 0 replies; 7+ messages in thread
From: Mark Lorenzen @ 2015-06-29 11:03 UTC (permalink / raw)
On Monday, June 29, 2015 at 12:15:45 PM UTC+2, yamen...@gmail.com wrote:
> Hi All ,
>
> After creating a project with the following entries in GPS
>
> project Hofstader is
>
> for Source_Dirs use ("src/**");
> for Object_Dir use "obj";
> for Exec_Dir use "output";
> for Main use ("main.adb");
>
> end Hofstader;
>
> i tried to add an already existing file whose suffix is adb , unfortunately i am getting always the following error
>
> hofstader.gpr:1:09: language unknown for "stader.adb"
>
> Any idea what could be the reason
Try to add the line
for Languages use ("Ada");
in the project file.
Regards,
MarkL
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Cannot Add adb or ads file to project in GPS 6.0.1
2015-06-29 10:15 Cannot Add adb or ads file to project in GPS 6.0.1 yamenajjour
2015-06-29 11:03 ` Mark Lorenzen
@ 2015-06-29 11:20 ` Simon Wright
2015-06-29 12:04 ` Dmitry A. Kazakov
2019-04-30 7:17 ` bert.oates
3 siblings, 0 replies; 7+ messages in thread
From: Simon Wright @ 2015-06-29 11:20 UTC (permalink / raw)
yamenajjour@gmail.com writes:
> i tried to add an already existing file whose suffix is adb ,
What exactly do you mean by "add"?
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Cannot Add adb or ads file to project in GPS 6.0.1
2015-06-29 10:15 Cannot Add adb or ads file to project in GPS 6.0.1 yamenajjour
2015-06-29 11:03 ` Mark Lorenzen
2015-06-29 11:20 ` Simon Wright
@ 2015-06-29 12:04 ` Dmitry A. Kazakov
2015-06-29 12:13 ` G.B.
2019-04-30 7:17 ` bert.oates
3 siblings, 1 reply; 7+ messages in thread
From: Dmitry A. Kazakov @ 2015-06-29 12:04 UTC (permalink / raw)
On Mon, 29 Jun 2015 03:15:45 -0700 (PDT), yamenajjour@gmail.com wrote:
> Hi All ,
>
> After creating a project with the following entries in GPS
>
> project Hofstader is
>
> for Source_Dirs use ("src/**");
What does this mean?
> for Object_Dir use "obj";
> for Exec_Dir use "output";
> for Main use ("main.adb");
>
> end Hofstader;
>
> i tried to add an already existing file whose suffix is adb , unfortunately i am getting always the following error
>
> hofstader.gpr:1:09: language unknown for "stader.adb"
>
> Any idea what could be the reason
It could be many.
What does
gprconfig -v
say? It should list "GNAT for Ada" with a path to GNAT installation
directory.
--
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Cannot Add adb or ads file to project in GPS 6.0.1
2015-06-29 12:04 ` Dmitry A. Kazakov
@ 2015-06-29 12:13 ` G.B.
0 siblings, 0 replies; 7+ messages in thread
From: G.B. @ 2015-06-29 12:13 UTC (permalink / raw)
On 29.06.15 14:04, Dmitry A. Kazakov wrote:
> On Mon, 29 Jun 2015 03:15:45 -0700 (PDT), yamenajjour@gmail.com wrote:
>
>> Hi All ,
>>
>> After creating a project with the following entries in GPS
>>
>> project Hofstader is
>>
>> for Source_Dirs use ("src/**");
>
> What does this mean?
* The attribute Source_Dirs can automatically include subdirectories
using a special syntax inspired by some UNIX shells. If any of
the path in the list ends with _"**"_, then that path and all
its subdirectories (recursively) are included in the list of
source directories. For instance, `**' and `./**' represent the
complete directory tree rooted at ".".
(gnat_ugn 2014) 11.2.1
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Cannot Add adb or ads file to project in GPS 6.0.1
2015-06-29 10:15 Cannot Add adb or ads file to project in GPS 6.0.1 yamenajjour
` (2 preceding siblings ...)
2015-06-29 12:04 ` Dmitry A. Kazakov
@ 2019-04-30 7:17 ` bert.oates
2019-04-30 8:17 ` Simon Wright
3 siblings, 1 reply; 7+ messages in thread
From: bert.oates @ 2019-04-30 7:17 UTC (permalink / raw)
Hi,
Did you manage to find a solution to this problem? I am having the same issue.
Thanks
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Cannot Add adb or ads file to project in GPS 6.0.1
2019-04-30 7:17 ` bert.oates
@ 2019-04-30 8:17 ` Simon Wright
0 siblings, 0 replies; 7+ messages in thread
From: Simon Wright @ 2019-04-30 8:17 UTC (permalink / raw)
bert.oates@gmail.com writes:
> Did you manage to find a solution to this problem? I am having the
> same issue.
OP never actually told us what his project structure was, or the result
of 'gprconfig' (gprconfig works out which compiler to use for a given
language).
If gprconfig doesn't show any Ada compilers, you might be able to find
out why by saying 'gprconfig -v' (look for lines starting 'GNAT is
candidate').
The most likely problem is mis-installation (you're picking up a
gprconfig that isn't part of the same installation as your
compiler). A long time ago I also saw this problem when the gprconfig
was built for a different version of the compiler than the actual, but
it's cleverer now.
What OS? what version of the compiler? what version of GPS, if you're
using it?
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2019-04-30 8:17 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-29 10:15 Cannot Add adb or ads file to project in GPS 6.0.1 yamenajjour
2015-06-29 11:03 ` Mark Lorenzen
2015-06-29 11:20 ` Simon Wright
2015-06-29 12:04 ` Dmitry A. Kazakov
2015-06-29 12:13 ` G.B.
2019-04-30 7:17 ` bert.oates
2019-04-30 8:17 ` Simon Wright
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox