Skip to main content
Filter by
Sorted by
Tagged with
0 votes
1 answer
85 views

how to link c file in Ada with gnatmake?

good, I'll get straight to the point. I have a program that needs to run tasks. These three tasks communicate with each other and call C functions for their needs. I wrote functions that call C ...
Dimitri Emmanuel Zokoualouba M's user avatar
-1 votes
1 answer
76 views

How to create an executable Ada file with gnatmake

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
0 votes
0 answers
71 views

Better way to organize build (GPR... or gnatmake)

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
  • 16
0 votes
0 answers
60 views

add another packages into a ada project

here i've two projects (project1 and project2) on my machine (debian 12 if it help) which are into two different directories. the first, project1 is into All_My_Projects/App_Projects/Project1 and the ...
Dimitri Emmanuel Zokoualouba M's user avatar
2 votes
0 answers
68 views

Howto Round an Ada Fixed point Type To Decimal precision?

type Number_Type is delta 0.000_1 digits 18; -------------------------------------------------------------- -- Round Number To Decimal 0 ------------------------------------------------------...
mcxbain's user avatar
  • 121
0 votes
0 answers
16 views

Where exactly is space missing here for `-gnatyt`?

Code extract: Signs : constant array (1 .. 2, 1 .. 2) of Sign := [[Sign (Left.Lower_Bound), Sign (Left.Upper_Bound)], [Sign (Right.Lower_Bound), Sign (Right.Upper_Bound)]]; The ...
Torsten Knodt's user avatar
0 votes
0 answers
41 views

How can I convert the rst files generated by GNATdoc to e.g. odt?

How can I convert the rst files generated by GNATdoc to e.g. odt? Unfortunately https://docs.adacore.com/live/wave/gps/html/gnatdoc-doc/gnatdoc.html seems to only cover the html backend. I am using ...
Torsten Knodt's user avatar
1 vote
1 answer
133 views

GNAT Community Edition on Debian Bookworm 12.2

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
1 answer
73 views

Use switches in the .gpr file for Ada program in community compiler 25.0w

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
0 votes
2 answers
102 views

Does GNATCOLL.traces exist?

Whenever I look up logging in Ada, one of the recommendations is GNATCOLL.Traces. I can see the documentation for it but there is no code. If I try something like with GNATCOLL.Traces; I get an ...
cup's user avatar
  • 8,321
0 votes
1 answer
83 views

How to run a pre build script in gnat project file?

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,331
0 votes
0 answers
95 views

how to install gtkada on linux

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
1 vote
1 answer
97 views

Build the whitakers-words dictionary with Alire

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
-1 votes
1 answer
34 views

MacBook Pro with M1 chip saving GNAT Studio, GCC for Ada 12 substituting a '-' for the '.' in Package.Child naming. Issue with Unix/Darwin and '.'? [closed]

MacBook Pro, running GNATStudio for Ada 12: On attempting to create child packages (as a work around for 'limited with’ problems I have not figured out yet) - reciprocal 'with and use' problems of ...
Mace Ayres's user avatar
1 vote
1 answer
144 views

Unable to bootstrap GNAT source build in UBI8

I am trying to compile GCC 8.5.0 from source in UBI8. Specifically, I want to build GNAT alongside it. Starting with the Docker image redhat/ubi8 I install the required packages dnf install -y gcc-...
markalian's user avatar

15 30 50 per page
1
2 3 4 5
30