News:

As usual while waiting for the next release - don't forget to check the nightly builds in the forum.

Main Menu

Can someone tell me how to setup CB to compile ADA

Started by stahta01, December 07, 2008, 03:10:52 AM

Previous topic - Next topic

stahta01

I have an small bit of code I wish to compile using ADA it is currently in Pascal, but I know ADA better than Pascal.

Plan to use GCC-ADA/GNAT under WinXP SP2.

Can someone tell me how to setup CB to compile ADA?
I just figure no reason to redo someone else work if anyone has done it already.

Tim S
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]

thomas

Never tried it... but the way gcc works, you should actually not have to do a single thing, just write Ada code and hit the button.
Gcc is a frontend that calls the C++ or Ada compiler or whatever else is needed, based on the type of source file.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

stahta01

Quote from: thomas on December 08, 2008, 09:37:06 AM
Never tried it... but the way gcc works, you should actually not have to do a single thing, just write Ada code and hit the button.
Gcc is a frontend that calls the C++ or Ada compiler or whatever else is needed, based on the type of source file.

It's a little harder that that, but this wiki should make it easier to do.
http://wiki.codeblocks.org/index.php?title=Adding_support_for_non_C/C%2B%2B_files_to_the_build_system

There is an intermediate *.ali file(s); I need to figure out how to handle it.
C Programmer working to learn more about C++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]