Giter VIP home page Giter VIP logo

Comments (2)

reznikmm avatar reznikmm commented on August 27, 2024 2

GNAT community Edition doesn't support Ada before Ada 2012. See here.
Use other compiler or remove -gnat95 from your project file.

This is definitely not a GPS bug.

from gnatstudio.

aplatypus avatar aplatypus commented on August 27, 2024 1

I made some follow-up. The MSYS2 on Windows 64 pacman Ada compiler is GCC v7.3.

mingw-w64-x86_64-gcc-ada 7.3.0-2 (mingw-w64-x86_64-toolchain)
    GNU Compiler Collection (Ada) for MinGW-w64

gnatmake.exe  --version
GNATMAKE 7.3.0
Copyright (C) 1995-2017, Free Software Foundation, Inc.
This is free software; see the source for copying conditions.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

This Ada compiler supports the -ada95 switch and all the Ada-s: 👍

Usage: gnat1 switches sfile

  sfile     Source file name

  -g            Generate debugging information
  -Idir         Specify source files search path
  -I-           Do not look for sources in current directory
  -O[0123]      Control the optimization level
   
    :

  -gnatyN   Cancel all previously set style checks
  -gnatzc   Distribution stub generation for caller stubs
  -gnatzr   Distribution stub generation for receiver stubs
  -gnat83   Ada 83 mode
  -gnat95   Ada 95 mode
  -gnat2005 Ada 2005 mode
  -gnat2012 Ada 2012 mode (default)
  -gnat-p   Cancel effect of previous -gnatp switch

        .file   "<stdin>

And I was able to run the compiler OK without the invalid switch error.

So there is a workaround for anyone passing this way and not having access to Ada 83, 95 and 05.

Alas ... the GNU gnat1 version is actually even LESS helpful. There is no version option at all (not even a disabled one). 👎

from gnatstudio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.