Skip to main content
Filter by
Sorted by
Tagged with
0 votes
2 answers
80 views

I'm on Windows OS and in the past month I used to compile a C/C++ project in Qt Creator IDE using MinGW's gcc/g++ compilers based on POSIX thread model, i.e. compilers that were built with the option -...
ahahfilip's user avatar
3 votes
2 answers
126 views

I'm trying to create a package of generic adjacency matrices to define graphs, and the first goal is to define a static version based on two-dimensional array: with Ada.Containers.Vectors; generic ...
tymurmchyk's user avatar
0 votes
1 answer
54 views

I've written the next piece of code in order to declare a vector of lexical elements: type Lexical_Element_Kind is ( Delimiter, -- & ' ( ) * + , - . / : ; < = > | -- => .. ...
tymurmchyk's user avatar
1 vote
4 answers
175 views

I cannot find an answerin the reference manual, nor in the sections on strings in the AdaCore tutorials. Is the unit bytes (doubtful for bounded or unbounded strings), code units (pretty sure no), ...
Wayne's user avatar
  • 13
0 votes
3 answers
120 views

I do not have the ability to update our Ada compiler set so include the IEEE packages. Is there a way to convert a Float into a Hexadecimal integer? For instance, a Float value of 1.5 as input should ...
Stacey Robert Greenstein's user avatar
0 votes
1 answer
99 views

Hope you an help me, I am attempting to get into simple game development using Ada and the Raylib Ada binding. So far so good, I set everything up through Alire Package Manager, got VS Code to find ...
Ada Lovelace's user avatar
-1 votes
1 answer
190 views

I have an Ada program that calls a C function. I have the C object file. I wrote an small test to see if it works. When I run: $ gnatmake main.adb -largs cfile.o -lpthread apparently there's no error ...
Dimitri Emmanuel Zokoualouba M's user avatar
3 votes
2 answers
170 views

I'm changing the compiler of a medium-sized codebase, mostly Ada (with some C & C++ modules), from ObjectAda (PTC) to Gnat. The product consists of ~100 Windows executables and ~20 dlls (~1500 Ada ...
Flo's user avatar
  • 46
0 votes
2 answers
56 views

The following compiles with Util.Log.Loggers; package body LogTest is Log : constant Util.Log.Loggers.Logger := Util.Log.Loggers.Create("./abc.log"); ... end LogTest; The problem is ...
cup's user avatar
  • 8,538
2 votes
3 answers
249 views

Is there a simple way of printing hexadecimal numbers with leading zeros in Ada? The following will print a number with leading zeros in hex but it is a bit convoluted. with Interfaces; with Ada....
cup's user avatar
  • 8,538
1 vote
1 answer
220 views

I have installed gnat-2021-20210519-x86_64-linux-bin from https://www.adacore.com/download When I tried to build simple project with gprbuild tst.gpr, linking failed with messages Link [link] ...
Kapturak's user avatar
0 votes
2 answers
77 views

"MISSING A callback handler is also needed for the X button when you close the dialog otherwise it never closes and remains in the background." I tried the attached code to solve this, but ...
Mark's user avatar
  • 69
0 votes
1 answer
126 views

I am compiling a program with "Build & debug" and get the following error message: [2024-12-12 11:24:45] Could not determine the project for file: D:\ada\project\Sudoku\Sudoku_main.gpr [...
ldries46's user avatar
5 votes
1 answer
130 views

When trying to get the first or last index of an unbounded string, as shown in this program with Ada.Strings; use Ada.Strings; -- for `Backward` with Ada.Strings.Unbounded; with Ada.Text_IO; use Ada....
zorleone's user avatar
0 votes
1 answer
81 views

the attached code compile & runs. $ ./xml_code Loading of XML is OK (xml_code:31196): Gtk-CRITICAL **: 22:24:59.048: gtk_color_chooser_get_rgba: assertion 'GTK_IS_COLOR_CHOOSER (chooser)' failed ...
Mark's user avatar
  • 69
0 votes
1 answer
130 views

I have a mixed C++ and Ada project. A GPRbuild project is used to build it and there is no makefile. There is a script which creates an H file with constants such as build host, username and git ...
Artium's user avatar
  • 5,391
0 votes
1 answer
109 views

I've just installed alr on Linux. Haven't used ada for about 10 years and found that gnat community is no longer supported. Entered the following program with Ada.Text_IO; procedure A02hello is ...
cup's user avatar
  • 8,538
2 votes
1 answer
122 views

I am having trouble getting dynamic dispatching to work with Ada generics. Is there an elegant way (something better than conditions such as if X in A then ...) to have the generic Print procedure in ...
user1091344's user avatar
0 votes
0 answers
117 views

i can't to install gtkada on my Linux PC. I tried look at the adacore's docs but I can't to understand. please someone can help me to install gtkada.i'm really blocked. after to have download and ...
Dimitri Emmanuel Zokoualouba M's user avatar
2 votes
2 answers
142 views

Assume I have the following subprogram declared in the specification. package Waiter is type Time_Span is ????; -- Time_Span definition TBD... procedure Wait (Period : Time_Span); end Waiter; ...
ATL_DEV's user avatar
  • 9,658
2 votes
2 answers
290 views

I tried to convert the array concatenation in function A to the new Ada 2022 reduction expression (see function B), but I get a range check failed error. What am I doing wrong? with Ada.Text_IO; ...
user1091344's user avatar
1 vote
1 answer
100 views

First of all I want to apologize for something wrong I will say, I'm new to Ada and Alire. I am trying to use the whitakers-words dictionary (https://github.com/mk270/whitakers-words) for a personal ...
Dennis Pierantozzi's user avatar
5 votes
2 answers
187 views

If I wrote type u1 is range 0 .. 1; type Index is range 0 .. 499999; type U1Array is array(Index) of u1; can I assume, that this will be a bit vector, which is packing the single u1 instances ...
BitTickler's user avatar
  • 12.1k
0 votes
1 answer
207 views

I have two packages called Passenger and Booking. They have a one to many relationship. I encountered a circular dependency error when I tried to do with in both of their files. I then tried limited ...
Royal Mail's user avatar
0 votes
0 answers
140 views

I'm trying to get HTTPS requests working with Ada Web Server (AWS) found at https://github.com/AdaCore/aws/tree/master I'm on Windows 11 and I don't understand how to make a build of the library and ...
Royal Mail's user avatar

1
2 3 4 5
49