View Full Version : Ada GPL GNAT GPS

01-16-2006, 01:54 PM
I'm posting this here on the off-chance that someone programs in Ada using the GNAT compiler - I can't seem to find any info on this problem online.

Whenever I try to compile a file, either through GPS or at the command line, I get this message:

gnatmake -u -c -u -PC:/GNAT/projects/ada_tutorial/ada_tutoral.gpr tutorial.adb -d
gcc -c -I- -gnatA C:\GNAT\projects\ada_tutorial\tutorial.adb
gcc.exe: installation problem, cannot exec `gnat1': Invalid argument
gnatmake: "c:\gnat\projects\ada_tutorial\tutorial.adb" compilation error

process exited with status 4

I've got my environment vars setup properly (afaik) yet it can never execute that curious gnat1 - which I might add is not a program in the bin directory. Hmm.

Can anyone help me with this?

01-17-2006, 02:07 AM
So do you have a program called gnat1 anywhere in the installation directories?

01-17-2006, 05:35 AM
Are you sure MinGW ships with the ADA compiler?

01-17-2006, 10:23 AM
I've managed to get it compiling now. The only problem is I can't seem to run anything. It compiles it to an .ali and .o file and if I use ld to link it I get all sorts of weird and wonderfull errors.
It doesn't matter I'm going to put off learning Ada for a while - I really haven't got the time or inclination with College work in the way too.