--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?
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"
-----------------------------------------------------
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.