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
1
vote
2 answers

Error during Gnat Ada compiler installing

I'm trying to install GNAT Compiler for Ada programing, but when I launch it I get the following error: "Cannot create config directory C:/users/@#$%@#%#@/.gps/ Exiting...". Somebody knows the solution? I try all kind of things, nothing…
0
votes
0 answers

No language defined for the project: Ada GNAT GPS

I've been having this issue where I've installed the GNAT (x86 windows 2017) on my other machine, and I suddenly have these errors, Error: no native compiler found for language 'ada', default runtime and no languages defined for this project. All of…
Debrix
  • 11
  • 1
0
votes
0 answers

adding -gnatp flag to a file/package in GPS

I use Ada With GPS (GNAT Programming Studio). The flag "-gnatp" when building will ignore among others constraint errors. I know a way to add the flag to all the files, using Edit->Preferences->Build target. Is there a way to choose when the builder…
0
votes
1 answer

gprbuild fails to include a file needed for gnatcoll

I tried to build something with GnatColl from GPS Community 2021 on Fedora 35. The linker failed, saying ld: /path/to/common/Ada/Quoter/obj/gnatcoll-refcount.o: in function…
John Perry
  • 2,497
  • 2
  • 19
  • 28
0
votes
1 answer

PostgreSQL C API - libq Undefined Reference

I am attempting the testPostgreSqlAPI.cpp example from here: http://www.yolinux.com/TUTORIALS/PostgreSQL-Programming-C-API.html#INSERT_SELECT I have created the database in PostgreSQL which I can see is successful: bedrock=# SELECT * FROM employee; …
Lloyd Thomas
  • 345
  • 2
  • 12
0
votes
2 answers

INTSTALLING GNATCOLL SQL & POSTGRES - Centos7 Linux, without using configure/make

So far I have downloaded GNAT GPS Community and installed this on my Linux Centos 7 machine. My objective is to be able to complete these two online examples: 1: http://bisaga.com/blog/programming/ada-database-first-steps/ 2:…
Lloyd Thomas
  • 345
  • 2
  • 12
0
votes
1 answer

Change gps behaviour on build target compile file

If I use the GNAT Programming Studio (GPS) to build a single file (Build target Compile file), the editor jumps to the first location in the file with a build warning/error. It is possible to disable this behaviour using a setting?
Marcello90
  • 1,313
  • 4
  • 18
  • 33
0
votes
1 answer

How do I turn off text overwriting when using gnatmake/GPS for ada?

Okay so I somehow changed the settings in GPS where it is overwriting my text when I type. I've tried so much stuff to try to fix it and I'm tired. Googling doesn't seem to help. Do any of yall know how to fix it? I can't stand coding when the text…
0
votes
1 answer

How do I get compiler error locations to show up in the Locations tab so I can one-click to them?

I'm using Gnat Programming Studio for Ada development. How do I get the Locations tab show compiler error links so I can one click to them? I get errors in the Messages tab, but then have to manually open the file and navigate to the error…
0
votes
4 answers

Maintaining fixed memory addresses for record members in Ada

I installed the GNAT-GPS and the AVR-ELF 3 days ago to play with. I got a blinky going and thought I might play around some more. I have no non-VHDL Ada experience. Here's the scenario I have working in C: I have it set up so that using a GPIO…
frank
  • 13
  • 3
0
votes
0 answers

Ada GPS editor crashes when pasting in text

While editing this package body: package body ai is type Possible_Boards is end ai; GPS crashes when pasting the following code after the is: let bestMoves = [ 0x1160:1, 0x1205:0, 0x1304:0, 0x1340:0, …
Glen Flint
  • 31
  • 2
0
votes
1 answer

GNAT Programming Studio: New project location browser freezes after attempting to make a bookmark

I just installed GPS on Windows 10 In order to make browsing to my source file folder less annoying, I tried adding it as a bookmark in the folder browser accessed from the new project window. When I right clicked on the folder and added it as a…
VKing
  • 1
  • 3
0
votes
0 answers

GPS Loading Incorrect Debugger Version (GDB)

I'm using GPS version 6.2.2 (20160527) with GNAT Pro 7.4.2 (20160527-49). The debugger that ships with this version of GNAT is 7.10 for GNAT Pro 7.4.2 [rev=gdb-7.10-ref-125-g3d2bab0]. Using GPS, the way to launch the debug session is to go to…
theMayer
  • 15,456
  • 7
  • 58
  • 90
0
votes
2 answers

How to color Ada procedure/function calls in GNAT GPS

Is there a way to color the calling Ada procedures or functions in Gnat GPS IDE? Is there any custom solution to this? Check the comment in the following code to see what I mean: package body Pkg is function Get_Amount (a : b) return Integer is …
BugShotGG
  • 5,008
  • 8
  • 47
  • 63
0
votes
1 answer

Ada library GPR project : why gprinstall does not work?

I have a GPR library project wichi builds successfully (the static or dynamic kind is not relevant here). I know that gprinstall provides means to manage the delivery of the library, i.e.: prepare a GPR file to use the library provide the library…
LoneWanderer
  • 3,058
  • 1
  • 23
  • 41