Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How do i configure AdaGIDE to use the GNAT compiler?

298 views
Skip to first unread message

GlesgaMick

unread,
Sep 26, 2004, 9:27:18 AM9/26/04
to
ok, i use windows ME, i installed "gnat-3.15p-nt.exe" to D:\GNAT. then i
installed AdaGIDE to that directory (as instructed at setup). i create a
simple "Hello, World!" program to test that its working. ie:

--start code
with Ada.Text_Io;
procedure Hello is
begin
Ada.Text_Io.Put_Line("Hello world!");
end Hello;
--end code

when i click "compile" i get the message:

Compiling...
gnat1: invalid switch: 2
Completed.

i can use gnatmake from the command line and it works, so how do i
configure GIDE to work, so i can just click?

Message has been deleted

GlesgaMick

unread,
Sep 27, 2004, 1:45:15 PM9/27/04
to
ok, but clicking build still generates the errors from 'compile' and a few
errors of its own it says the .ali file is missing? and doesn't generate
an exe file... it works on the college computers but i can't find any
differences in my settings from their's even under Tools>GNAT options for
current directory.

Message has been deleted

Alfred Hilscher

unread,
Sep 30, 2004, 6:46:50 AM9/30/04
to

GlesgaMick schrieb:


>
> ok, i use windows ME, i installed "gnat-3.15p-nt.exe" to D:\GNAT. then i
> installed AdaGIDE to that directory (as instructed at setup). i create a
> simple "Hello, World!" program to test that its working. ie:

First of all - which version of AdaGide do you use? There may be
different behaviour between different versions.

Where did you store your "Hello world" example? Sometimes there are
problems when the path contains blanks in the name (e.g. "Program
Files"). What is the name and extension of the file?

AG sets the parameters to gcc depending from what is stored in the files
"gnat.ago" (in the current directory) and "AdaGIDE.ini" (in the
directory where the AdaGIDE.exe is located). So you can try to delete
these both files (make a backup before) and see whether it works then.

-----------------------------------------------------
To send me mail, please replace "Spam" by "Jedermann"
-----------------------------------------------------

Alfred Hilscher

unread,
Sep 30, 2004, 8:15:48 AM9/30/04
to

GlesgaMick schrieb:


>
> ok, i use windows ME, i installed "gnat-3.15p-nt.exe" to D:\GNAT. then i
> installed AdaGIDE to that directory (as instructed at setup). i create a
> simple "Hello, World!" program to test that its working. ie:


Another hint, rename the gcc.exe in the "\GNAT\bin" directory. If
AdaGide cannot find it then it pops up a dialogbox showing the
commandline it tries. Either you can find an error there or you can post
it here so we can have a look at it.

GlesgaMick

unread,
Oct 2, 2004, 8:46:45 AM10/2/04
to
ok, i solved the problem by buying a text book which had a free CD_ROM with
gnat and AdaGide, it did all the installling for me and i can now compile
from withing the Gide, but i have another question, no wthat my quest for
learning Ada is under way... i'll post it at the top...

0 new messages