comp.lang.ada
 help / color / mirror / Atom feed
* Problem with GPS on Windows
@ 2005-05-04 21:29 James Alan Farrell
  2005-05-05  5:27 ` Simon Wright
  0 siblings, 1 reply; 2+ messages in thread
From: James Alan Farrell @ 2005-05-04 21:29 UTC (permalink / raw)


Hi all,
I hope a question on GPS is not too far off base here...

I've downloaded gnat 3.15p, GtkAda and GPS 2.1.0 (20041129) for work
at home.  I'm running Windows XP.

I seem to be having two problems:
1. GPS cannot find the compiler:
    When I attempt to build my project I get

    gnatmake -PD:\programming\ada\hellow.gpr -d 
   [2005-05-04 17:08:08] Invalid command

   I have the compiler installed at C:\gnat\bin (which was the 
   default.)  It is in my path in the environment variables,
   and when I run gnatmake in cmd it is found.

   I have edited the project properties to make the compiler
   c:\gnat\bin\gnatmake, and I get the error described below.  I 
   hack the project file to make that error go away, and I get

   c:\gnat\bin\gnatmake -PD:\programming\ada\hellow.gpr -d 
   gcc -c -g -o d:\programming\ada\hello.o -g -gnatA  \
   d:\programming\ada\.\hello.adb
   gnatmake: error, unable to locate gcc

   It seems clear that GPS cannot is not reading the path.  So 
   where does it look for the compiler, and how do I set it on 
   the correct path?  (pun intended ;)

2. Something seems incorrect with the project file:
    When fixup the compiler command above to find gnatmake
    I get the error:

   undefined attribute "Executable"

   This line is highlighted in the project file:

   for Executable ("hello.adb") use "";

   When I remove this line and build from cmd, the program 
   builds fine.  So why is this line being put in, and how can I
   stop it?

   I created the project using the GPS project wizard.

Thanx,
James Alan Farrell



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problem with GPS on Windows
  2005-05-04 21:29 Problem with GPS on Windows James Alan Farrell
@ 2005-05-05  5:27 ` Simon Wright
  0 siblings, 0 replies; 2+ messages in thread
From: Simon Wright @ 2005-05-05  5:27 UTC (permalink / raw)


James Alan Farrell <no_spam@no_spam.com> writes:

> 2. Something seems incorrect with the project file:
>     When fixup the compiler command above to find gnatmake
>     I get the error:
>
>    undefined attribute "Executable"
>
>    This line is highlighted in the project file:
>
>    for Executable ("hello.adb") use "";
>
>    When I remove this line and build from cmd, the program 
>    builds fine.  So why is this line being put in, and how can I
>    stop it?

I don't know about that, but the relevant attributes are (eg)

  for Main use ("stairwell_demo");

  for Exec_Dir use ".";

(some versions of GPS needed the .adb extension on the main, I think
this is fixed now).

>    I created the project using the GPS project wizard.

Personally I would rather edit the project file with a text editor,
having seen some truly mangled results! Never tried the wizard ..



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2005-05-05  5:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-05-04 21:29 Problem with GPS on Windows James Alan Farrell
2005-05-05  5:27 ` Simon Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox