Thread: Ada GPL GNAT GPS

  1. #1
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709

    Ada GPL GNAT GPS

    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:

    Code:
    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?
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    So do you have a program called gnat1 anywhere in the installation directories?

  3. #3
    Cat without Hat CornedBee's Avatar
    Join Date
    Apr 2003
    Posts
    8,895
    Are you sure MinGW ships with the ADA compiler?
    All the buzzt!
    CornedBee

    "There is not now, nor has there ever been, nor will there ever be, any programming language in which it is the least bit difficult to write bad code."
    - Flon's Law

  4. #4
    Supermassive black hole cboard_member's Avatar
    Join Date
    Jul 2005
    Posts
    1,709
    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.
    Good class architecture is not like a Swiss Army Knife; it should be more like a well balanced throwing knife.

    - Mike McShaffry

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Why C Matters
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 136
    Last Post: 01-16-2008, 09:09 AM
  2. GPL license: how does it cover the output of a program?
    By psychopath in forum A Brief History of Cprogramming.com
    Replies: 16
    Last Post: 05-25-2006, 01:37 AM
  3. PocketPC read out GPS coordinates
    By zikje in forum Windows Programming
    Replies: 0
    Last Post: 03-08-2006, 09:08 AM
  4. Gnat
    By Magos in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 03-28-2002, 04:15 PM