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
3
votes
1 answer

What's the name of the executable to run GNAT GPS in linux?

IT just installed this on my machine. I'm trying to find the name of the executable to run GNAT GPS. Thanks.
Daniel Ogburn
  • 551
  • 1
  • 6
  • 16
2
votes
1 answer

How to allow Ada Big_Numbers in GPS Community 2021

With Ada 2022, Ada.Numerics.Big_Numbers can be enabled by setting -gnatwi somewhere according to the error I get in GPS Community Edition 2021. warning: "Ada.Numerics.Big_Numbers" is an Ada 2022 unit [-gnatwi] I assume the flag must be set for the…
mhatzl
  • 173
  • 1
  • 7
2
votes
2 answers

How to add vectors in Ada

I have a vector of the form (x,y,x) representing coordinates. I want to be able to do something like (x,y,z) + (x2,y2,z2) to produce a new set of coordinates. Ada says it cant use '+' for composite types, but surely there is a way I can do this?
Ben
  • 129
  • 9
2
votes
1 answer

pragma export function is not external in Ada executable

I need a Visual Studio C++ DLL be able to call a function in my Ada mainline. The Ada code has a function spec like package offset is function GET_OFFSET return integer; pragma Export (Stdcall, GET_OFFSET, "fnAdaOffset"); end offset; The…
erict
  • 1,394
  • 2
  • 14
  • 28
2
votes
1 answer

Ada - Accessibility check raised within a procedure

I previously asked a question regarding accessibility checks being raised in Ada, which @Brian Drummond was kind enough to awnser. The accessibility check was in a function, now I have a similair problem within a procedure; any guidance as to why…
Lloyd Thomas
  • 345
  • 2
  • 12
2
votes
1 answer

GNAT GPS: Add a custom command

I would like to know if it is possible to add a custom command to the GNAT Programming Studio (GPS)? If the custom command is invoked (by a button in the menu bar or a keyboard shortcut) an external Python script should be called with the…
Marcello90
  • 1,313
  • 4
  • 18
  • 33
2
votes
1 answer

Unable to compile and run simple Ada application

Very new to Ada and have started to learn by doing a Hello World tutorial in GNAT GPS. I'm having a hard time figuring out an error when I compile my code. The error looks like a source file dir issue. But I'm highly unfamiliar with the error output…
user12243624
2
votes
1 answer

How to distribute a GtkAda application under Windows?

I'm having troubles distributing a GtkAda application on Windows. I made an executable (with Windows native compiler) and tried using it on another Windows computer. However, I get errors about dlls missing. I tried distributing with my .exe three…
2
votes
3 answers

How do I interface with Windows system calls in the new manner of 64 bit GNAT GPS?

I am used to using Win32Ada library for calling system calls for a terminal program that I was creating for Windows. The system calls were sufficient to achieve the control needed over the console, but nothing in Ada standard library would be. …
Micah W
  • 378
  • 2
  • 8
2
votes
2 answers

GNAT Ada runtime Exception = message EXCEPTION_STACK_OVERFLOW

I'am trying to run my application after compiling it with AdaCores GPS (Gnat Programming Studio). I get the run time error Exception name: STORAGE_ERROR Message: EXCEPTION_STACK_OVERFLOW I get these run time errors despite setting the stack size…
2
votes
1 answer

How can I pass command line arguments to the executable built by Gnat-GPS's Build>Run command?

Step 9 of the GPS tutorial states It is now time to run the application: select the menu Build->Run->sdc, which will open a dialog window. In the text input field (selected by default), press the right arrow key and then insert input.txt: this is…
Noumenon
  • 5,099
  • 4
  • 53
  • 73
2
votes
1 answer

gnat programming studio auto fix issues

I'm using GNAT Programming Studio to update some ada files. I have a style check, which for these old files produces literally thousands of warnings. Helpfully GPS has a little auto fix 'wrench' icon in the locations view, that's great but I don't…
Richard
  • 1,298
  • 6
  • 17
  • 27
1
vote
0 answers

Error setting the video mode when trying to run the compiled Game_Support example; GNAT Studio;

Trying to compile example /opt/gnatstudio/share/examples/training/games/bouncing/bouncing.gpr There are no problems when compiling, but when running - Error setting the video mode UNCAUGHT EXCEPTION === raised STORAGE_ERROR : s-intman.adb:136…
1
vote
0 answers

Cannot set key shortcut on GNAT Studio

I am using the GNAT Studio Community 2020 (20200427) on Windows10. I want to set a key shortcut for the "Goto declaration or body" action. I select in the Edit > Preferences... > Key Shortcuts menu, then select "Goto declaration or body", click on…
jhoran
  • 190
  • 1
  • 8
1
vote
1 answer

Adacore GNATCOLL Postgres library not installing on CentOS 8

I posted a question a couple of days ago regarding installing the GNATCOLL library on CentOS 8, which was kindly answered. I have now attempted to install the gnatcoll postgres library, which I was hoping would be the same process. However, when I…
Lloyd Thomas
  • 345
  • 2
  • 12