Questions tagged [gnat-gps]

The GNAT Programming Studio, gnat-gps, is an open source integrated development environment.

The GNAT Programming Studio, gnat-gps, is an open source integrated development environment popular among users of the Ada programming language. It is developed by AdaCore and is available for Linux, Windows and OS X.

90 questions
8
votes
1 answer

How to create an ada lib.a and link to C

I am trying to create an ada library and have tried a few different things. I have tried compiling the project using makefiles and trying to create a library from all the .o files This seemed to not work as expected. I then asked adacore support…
crychair
  • 337
  • 3
  • 20
6
votes
1 answer

How do you implement Generic_Sorting in Ada for a vector?

I'm trying to do some basic translations of old C++ code from many moons ago to learn Ada, and I have been absolutely stumped on how to sort a vector using the built-in Generic_Sorting. I haven't been able to find any concrete examples of it in…
ZSwat
  • 85
  • 6
5
votes
1 answer

What should I do to solve the GNAT GPS "library not found" problem and build my first "Hello World" program on my Mac?

I downloaded the GNAT Community 2019 and have installed on my Mac in my home folder "/Users/leon/opt/GNAT" I run the command "gps" in the directory "/Users/leon/opt/GNAT/2019/bin". And GPS showed up, then I created a project, typed the "Hello World"…
Leon R. Wood
  • 193
  • 1
  • 6
5
votes
1 answer

Dynamic linking a library in Ada introduces extra dependencies

I am having trouble with dynamic and static linking a library in Ada. I have prepared a minimum working example. These three files define a library that outputs "Hello world": helloworld_lib.gpr: project Helloworld_Lib is for Library_Name use…
5
votes
1 answer

How can I specify functions or procedures GNATTest should auomatically generate a test case for

I'm working on a huge code package (written dominantly in ada), which is an extreme mess. No Unit Tests are applied so far and for all the existing code, Unit tests must not be implemented. But our Team decided, that all the new code should be…
5
votes
1 answer

Debugging in GPS IDE

I'm using GPS IDE for Ada 95 coding. When I try to put a break point in a .adb file, I'm getting a message "No source file named filename.adb". I built the project and initialized the debugger. What could have gone wrong? Oddly, I'm able to execute…
4
votes
3 answers

How to stop console window from closing immediately | GNAT - GPS

I have Ada program that runs and compile perfectly using GNAT - GPS. When I run its exe file and provide user input then instead of saying "Press any key to continue", the exe closes immediately. I have searched for it online alot but i only found…
John Bravo
  • 91
  • 1
  • 2
  • 10
4
votes
1 answer

GNAT Programming Studio (IDE) and STM32 problems

I’m using the Ada programming IDE GNAT Programming Studio (GPS, GPL 2017 release) and I’m having a hard time when I try to use it with STM32F4Disco. On Linux (Ubuntu 17.10), when I try to open a STM32 project, GPS freezes. No core-dump, no error…
smionean
  • 51
  • 6
3
votes
1 answer

GNAT Studio - Cant use non-core Ada librairies

I am new to Ada programing and I am trying to learn it using the GNAT Studio IDE. There is no problem using the core librairies like Ada.Text_IO or Ada.Numerics, but when I try to use Libadalang for exemple, the compiler doesnt find the…
3
votes
1 answer

Weird error when compiling 32-bit programs with GCC

When I try to compile a simple 32-bit C program using GCC on 64-bit Linux, I get the following message: [teo.samarzija@teos-acer-laptop debug]$ gcc -m32 -o program program.c /usr/local/bin/../libexec/gcc/x86_64-pc-linux-gnu/8.3.1/ld: skipping…
FlatAssembler
  • 667
  • 7
  • 30
3
votes
2 answers

Updating the Compiler for the GPS Community Edition 2019 IDE

I've recently started working on a project that requires my complier to be above GNAT 4.8.5 - When I go to: Help > About You can see that the version I'm using is 4.8.5 Also, when I run the gnatls -v command, I can see…
Lloyd Thomas
  • 345
  • 2
  • 12
3
votes
1 answer

How can I tell vim to search a certain directory (as well as the current one) when trying to open a reference from the tags file?

I have a tags file with two types of entries interspersed: Integer_List main.adb 19 Copy a-cdlili.ads 118 It was generated by making an Ada project using Gnat Programming Studio, which uses gprbuild to build the project. Then, I run…
TamaMcGlinn
  • 2,840
  • 23
  • 34
3
votes
1 answer

Running Ada on the Zynq using a Digilent Zybo development board

I've been successfully using Vivado and the SDK to develop VHDL and C for the Zynq XC7Z010 on a Digilent Zybo board. I've also been using the GNAT GPS IDE to learn Ada targeted to an STM32F4 processor (using one of the supported development…
Max van Daalen
  • 317
  • 2
  • 14
3
votes
1 answer

How to run GNAT Programming Studio on Raspberry PI 3 (Raspbian)?

I can not run GNAT Programming Studio on Raspberry PI 3 (Raspbian). I am using 2017-06-21-raspbian-jessie.img and gnat-gpl-2016-raspberrypi-linux-linux-bin.tar.gz After unzipping and typing in terminal sudo ./doinstall it is installed in /usr/gnat.…
Jossi
  • 1,020
  • 1
  • 17
  • 28
3
votes
2 answers

Ada programming in GPS

I am a beginner with using both the ada language, as well as using GPS. I can't seem to find any solid tutorials to help learn ada or GPS, but that's not my question. I have tried various simple programs, like this one: with Win32.crt.Math; with…
Ben
  • 31
  • 2
1
2 3 4 5 6