r/ada • u/DiligentBill2936 • 15d ago
Learning ada programming setup
i am planning to do setup for Ada. Bit confused on Alire/GNat/Gnat Studio.
Just downloaded GNat studio thinking its 'all in one' but its asking 'gpr build missing'
Can someone point to basic tutorial on how to setup the environment?
Thanks
11
Upvotes
View all comments
7
u/jordansrowles 15d ago
I'd recommend installing Alire first, then running
alr toolchain --selectto install GNAT and GPRbuild.You can then create a project with
alr init --bin hello, enter the directory and runalr runto build and execute it.Once that's working, you can use
alr editto open the project in GNAT Studio, assuming you've installed Studio and it's available on your PATH.Edited for more info:
Most of this is different stuff: