Author Topic: Can someone tell me how to setup CB to compile ADA  (Read 8399 times)

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Can someone tell me how to setup CB to compile ADA
« on: December 07, 2008, 03:10:52 am »
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
« Last Edit: December 07, 2008, 03:12:50 am by stahta01 »
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org

Offline thomas

  • Administrator
  • Lives here!
  • *****
  • Posts: 3979
Re: Can someone tell me how to setup CB to compile ADA
« Reply #1 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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7590
    • My Best Post
Re: Can someone tell me how to setup CB to compile ADA
« Reply #2 on: December 08, 2008, 06:12:12 pm »
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++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org