Jump to content

how to compile ada programs?


Guest srinicame
 Share

Recommended Posts

Guest srinicame

Hi

Please help me in compiling ada programs on mandriva 2006

 

I am using gcc v 4.0

 

gcc -v reported that it was compiled with ada as an option for lang.

 

gcc -c hello.adb

 

reported that "it could not find gnat1"

Link to comment
Share on other sites

Hi, and welcome aboard!

 

I've not used Ada with gcc, but according to Google, gnat1 is the component which gcc uses for Ada. Chances are that if you installed gcc, you didn't automatically get gnat1 unless you asked for it. So it could be that you haven't got it, or it could be that you've got it but gcc can't find it.

Check first that you've got gnat1 ("rpm -qa | grep gnat" should list it if it's installed), and if you haven't, then add it via urpmi.

And let us know if it works!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

×
×
  • Create New...