Ncurses and Ada

Hello,
 I started learn ada recently and mess with ncurses.
 I know this is somewhat unrelated but maybe someone can help me here.
 I build ncurses with Ada support,
 Ada examples(rain and so on) has been built fine.
 But i don't know how should i build mine programs that uses ncurses.
 For example: I copy rain.adb from examples dir to some other dir,
 How can i build it? What options of gnatmake should i pick to build it?
0
Eilie (8)
3/9/2012 2:40:00 PM
comp.lang.ada 8270 articles. 1 followers. Post Follow

14 Replies
286 Views

Similar Articles

[PageSpeed] 39

On Friday, March 9, 2012 3:40:00 PM UTC+1, Eilie wrote:
> Hello,
>  I started learn ada recently and mess with ncurses.
>  I know this is somewhat unrelated but maybe someone can help me here.
>  I build ncurses with Ada support,
>  Ada examples(rain and so on) has been built fine.
>  But i don't know how should i build mine programs that uses ncurses.
>  For example: I copy rain.adb from examples dir to some other dir,
>  How can i build it? What options of gnatmake should i pick to build it?

Is ncurses related with curses? (I guess so) Ah, memories... I used curses =
_many_ years ago, when I was a student and I thought that the name was quit=
e appropriate... :-/  Especially when the usual segmentation fault left you=
r VT100 monitor [yes, I am that old!] in an unusable state, forcing you to =
logout and login  again...

Seriously, since I never used ncurses, I cannot be of much help, but I can =
give you some general advice.  Does the example dir has some project file (=
*.gpr)?  If it has, I would start from that, taking an existing project fil=
e and modifying to my needs.

Hope this "bootstraps" you.

Riccardo
0
framefritti (102)
3/9/2012 2:56:16 PM
On 2012-03-09, mockturtle <framefritti@gmail.com> wrote:
> On Friday, March 9, 2012 3:40:00 PM UTC+1, Eilie wrote:
>> Hello,
>>  I started learn ada recently and mess with ncurses.
>>  I know this is somewhat unrelated but maybe someone can help me here.
>>  I build ncurses with Ada support,
>>  Ada examples(rain and so on) has been built fine.
>>  But i don't know how should i build mine programs that uses ncurses.
>>  For example: I copy rain.adb from examples dir to some other dir,
>>  How can i build it? What options of gnatmake should i pick to build it?
>
> Is ncurses related with curses? (I guess so) Ah, memories... I used curses _many_ years ago, when I was a student and I thought that the name was quite appropriate...
>:-/  Especially when the usual segmentation fault left your VT100 monitor [yes, I am that old!] in an unusable state, forcing you to logout and login  again...
>
> Seriously, since I never used ncurses, I cannot be of much help, but I can give you some general advice.  Does the example dir has some project file (*.gpr)?  If it has, I would start from that, taking an existing project file and modifying to my needs.
>
> Hope this "bootstraps" you.
>
> Riccardo

I'm tryng to make some simple CLI game.
I think that study GtkAda for this purpose would be overhead.
But if there is some more stable/usable lib for that purpose(CLI tools/games)
i will be happy to hear about it.
0
Eilie (8)
3/9/2012 4:59:46 PM
On Friday, March 9, 2012 10:59:46 AM UTC-6, Eilie wrote:
> 
> I'm tryng to make some simple CLI game.
> I think that study GtkAda for this purpose would be overhead.
> But if there is some more stable/usable lib for that purpose(CLI tools/games)
> i will be happy to hear about it.

Inspired by Kroz?
http://en.wikipedia.org/wiki/Kroz_series
0
3/9/2012 5:13:01 PM
On Friday, March 9, 2012 5:59:46 PM UTC+1, Eilie wrote:
> On 2012-03-09, mockturtle <...@gmail.com> wrote:
> > On Friday, March 9, 2012 3:40:00 PM UTC+1, Eilie wrote:
> >> Hello,
> >>  I started learn ada recently and mess with ncurses.
> >>  I know this is somewhat unrelated but maybe someone can help me here.
> >>  I build ncurses with Ada support,
> >>  Ada examples(rain and so on) has been built fine.
> >>  But i don't know how should i build mine programs that uses ncurses.
> >>  For example: I copy rain.adb from examples dir to some other dir,
> >>  How can i build it? What options of gnatmake should i pick to build i=
t?
> >
> > Is ncurses related with curses? (I guess so) Ah, memories... I used cur=
ses _many_ years ago, when I was a student and I thought that the name was =
quite appropriate...
> >:-/  Especially when the usual segmentation fault left your VT100 monito=
r [yes, I am that old!] in an unusable state, forcing you to logout and log=
in  again...
> >
> > Seriously, since I never used ncurses, I cannot be of much help, but I =
can give you some general advice.  Does the example dir has some project fi=
le (*.gpr)?  If it has, I would start from that, taking an existing project=
 file and modifying to my needs.
> >
> > Hope this "bootstraps" you.
> >
> > Riccardo
>=20
> I'm tryng to make some simple CLI game.
> I think that study GtkAda for this purpose would be overhead.
> But if there is some more stable/usable lib for that purpose(CLI tools/ga=
mes)
> i will be happy to hear about it.

Just to avoid any misunderstanding (with written exchange it may happens): =
I was not criticizing your choice, it just made me wonder (and smile) since=
 it recalled to my memory my experience with "curses." =20
(BTW, I am smiling while I write this ;-)

Riccardo
0
framefritti (102)
3/9/2012 5:35:42 PM
On 2012-03-09, Shark8 <onewingedshark@gmail.com> wrote:
> On Friday, March 9, 2012 10:59:46 AM UTC-6, Eilie wrote:
>>
>> I'm tryng to make some simple CLI game.
>> I think that study GtkAda for this purpose would be overhead.
>> But if there is some more stable/usable lib for that purpose(CLI tools/games)
>> i will be happy to hear about it.
>
> Inspired by Kroz?
> http://en.wikipedia.org/wiki/Kroz_series

Not really.
I'm just begginer it's too hard for me write rougelikes in Ada.
I need to start with a small steps.
Maybe some Sokoban or Sudoku with ncurses(i'm know these to games can be
easely implemented without ncurses but i want to study Ada ncurses too).
0
Eilie (8)
3/9/2012 5:44:09 PM
Eilie writes on comp.lang.ada:
> Hello,
>  I started learn ada recently and mess with ncurses.
>  I know this is somewhat unrelated but maybe someone can help me here.
>  I build ncurses with Ada support,
>  Ada examples(rain and so on) has been built fine.
>  But i don't know how should i build mine programs that uses ncurses.
>  For example: I copy rain.adb from examples dir to some other dir,
>  How can i build it? What options of gnatmake should i pick to build it?

I don't know what platform you develop on but Debian is your friend :)
and Nicolas Boulenguez made sure it is as easy as possible for you to
use ncurses in your programs:

aptitude install libncursesada2-dev

then look in the file /usr/share/ada/adainclude/ncursesada.gpr.

-- 
Ludovic Brenta.
0
ludovic (1598)
3/9/2012 5:57:03 PM
On 2012-03-09, Ludovic Brenta <ludovic@ludovic-brenta.org> wrote:
>
> I don't know what platform you develop on but Debian is your friend :)
> and Nicolas Boulenguez made sure it is as easy as possible for you to
> use ncurses in your programs:
>
> aptitude install libncursesada2-dev
>
> then look in the file /usr/share/ada/adainclude/ncursesada.gpr.
>

I'm on Arch Linux and i have /usr/share/ada/adainclude but i don't have
/usr/share/ada/adainclude/ncursesada.gpr in it.

I already find out wich options should i use to compile my code with
ncurses. Anyway thank you for your attention.
0
Eilie (8)
3/9/2012 6:28:39 PM
Am Freitag, 9. M=E4rz 2012 19:28:39 UTC+1 schrieb Eilie:
> I'm on Arch Linux and i have /usr/share/ada/adainclude but i don't have
> /usr/share/ada/adainclude/ncursesada.gpr in it.
>=20
> I already find out wich options should i use to compile my code with
> ncurses. Anyway thank you for your attention.

I created a few Ada related PKGBUILDs for the AUR and will have a look at n=
cursesada.

BTW, where did you get /usr/share/ada/adainclude from? Normally, the Ada li=
brary packages should install to /usr/include/<foo> and /usr/lib/<foo> and =
their project files to /usr/lib/gnat.

You can identify the package owning a file by using pacman -Qo
0
julian71 (28)
3/12/2012 8:18:50 AM
Julian Leyh <julian@vgai.de> writes:

> BTW, where did you get /usr/share/ada/adainclude from? Normally, the
> Ada library packages should install to /usr/include/<foo> and
> /usr/lib/<foo> and their project files to /usr/lib/gnat.

FSF GCC and GNAT GPL both use $prefix/lib/gnat to find GPR files, with
the rest of the layout as you say.

The /usr/share/ada/adainclude is Debian's layout. I don't know why it's
different (probably Ludovic needed a scheme before AdaCore had settled
on theirs) and I haven't so far worked out install scripts that will
work in either situation.
0
simon8285 (1465)
3/12/2012 8:42:19 AM
On 2012-03-12, Julian Leyh <julian@vgai.de> wrote:
> I created a few Ada related PKGBUILDs for the AUR and will have a look at ncursesada.
>
> BTW, where did you get /usr/share/ada/adainclude from? Normally, the Ada library packages should install to /usr/include/<foo> and /usr/lib/<foo> and their project files to /usr/lib/gnat.
>
> You can identify the package owning a file by using pacman -Qo

/usr/share/ada/adainclude/terminal_interface-curses.adb is owned by
ncurses 5.9-3

I just build ncurses from ABS with ada support.
0
Eilie (8)
3/12/2012 9:04:03 AM
Simon Wright wrote on comp.lang.ada:
> Julian Leyh writes:
>> BTW, where did you get /usr/share/ada/adainclude from? Normally, the
>> Ada library packages should install to /usr/include/<foo> and
>> /usr/lib/<foo> and their project files to /usr/lib/gnat.
> 
> FSF GCC and GNAT GPL both use $prefix/lib/gnat to find GPR files, with
> the rest of the layout as you say.
> 
> The /usr/share/ada/adainclude is Debian's layout. I don't know why it's
> different (probably Ludovic needed a scheme before AdaCore had settled
> on theirs)

Correct. I didn't invent this path myself though; Florian Weimer did,
when he made the very first proposal for a standard ("GNU Ada
Environment Specification") back in 2001 or so.  IIRC, that
specification applied to the early .rpm packages for GNAT 3.13p
produced by the Ada for Linux Team.  So, it is possible that
/usr/share/ada/adainclude still exists in distributions other than
Debian.

> and I haven't so far worked out install scripts that will
> work in either situation.

Sorry about that :/ but as I've said many times, packaging is
difficult; if you want to concentrate on writing your software,
your best bet is to leave packaging to specialists of each target
platform while making their job as easy as possible.

-- 
Ludovic Brenta.
0
ludovic (1598)
3/12/2012 10:20:23 AM
On 12.03.12 11:20, Ludovic Brenta wrote:
> Simon Wright wrote on comp.lang.ada:
>> Julian Leyh writes:
>>> BTW, where did you get /usr/share/ada/adainclude from? Normally, the
>>> Ada library packages should install to /usr/include/<foo> and
>>> /usr/lib/<foo> and their project files to /usr/lib/gnat.
>>
>> FSF GCC and GNAT GPL both use $prefix/lib/gnat to find GPR files, with
>> the rest of the layout as you say.
>>
>> The /usr/share/ada/adainclude is Debian's layout. I don't know why it's
>> different (probably Ludovic needed a scheme before AdaCore had settled
>> on theirs)
> 
> Correct. I didn't invent this path myself though; Florian Weimer did,
> when he made the very first proposal for a standard ("GNU Ada
> Environment Specification") back in 2001 or so. 

According to $(man hier), an Ada compiler's spec files
would not normally be counted among UNIX System Resources,
specifically not in /usr/include, and since /usr/share seems to be
the place for architecture independent files, the current paths seem
o.K. to me.

0
3/12/2012 1:20:55 PM
Georg Bauhaus <rm.dash-bauhaus@futureapps.de> writes:

> According to $(man hier), an Ada compiler's spec files would not
> normally be counted among UNIX System Resources, specifically not in
> /usr/include, and since /usr/share seems to be the place for
> architecture independent files, the current paths seem o.K. to me.

I don't have a Linux box immediately to hand, but Apple seem to think
it's OK to include Tcl & Python (neither of which is mentioned in `man
hier`, any more than Ada is) in /usr/include.
0
simon8285 (1465)
3/12/2012 2:33:19 PM
On 12.03.12 15:33, Simon Wright wrote:
> Georg Bauhaus <rm.dash-bauhaus@futureapps.de> writes:
> 
>> According to $(man hier), an Ada compiler's spec files would not
>> normally be counted among UNIX System Resources, specifically not in
>> /usr/include, and since /usr/share seems to be the place for
>> architecture independent files, the current paths seem o.K. to me.
> 
> I don't have a Linux box immediately to hand, but Apple seem to think
> it's OK to include Tcl & Python (neither of which is mentioned in `man
> hier`, any more than Ada is) in /usr/include.

The header files seem to be mostly for interfacing to the language
(or library). Objective-C has its "objc" subdirectory, too. So do PHP
and some "system components".

Still, the bulk of what (I think) would correspond to the Ada RTS,
or AWS or Ada libraries in general lives in
/System/Library/Frameworks/{Tcl,Python}.framework/Versions,
alongside Cocoa, Ruby, IOKit, LDAP, ...

I'd nevertheless hope to find, in an "ada" subdirectory of /usr/include,
Ada related header files for cross language programming.
For example,if GNAT is a system compiler, one might then write

#include <ada/lifecycle.h>

and then the C compiler knows about functions (ultimately) named

  void adainit (void);
  void adafinal (void);

Thus, if other compilers have a comparable mechanism, the ARG could bless
names of functions controlling it, and programs that call Ada parts
from C parts would be made portable by including the system header.

Once Apple considers Ada part of the system, they will have done it
for us ;-)
0
3/12/2012 4:23:40 PM
Reply:

Similar Artilces:

Ada 95 -- Ada 2005 -- Ada 2012
newbie: i'm learning Ada now using an Ada 95 book=E2=80=A6 question: is the object oriented features so different in Ada 2012 that i should not = use a book teaching Ada 95, the book is the second edition by Koffman and F= eldman "Ada 95: Problem Solving and Program Design" I was reading the Ada Style Guide and got to the part about Object Oriented= features and realized how dated this document might be. From Ada Style Guide: "Chapter 9 defines a set of guidelines in common objected-oriented terms th= at exploit some of the features of Ada 95 that are ...

Ada in Debian: libncursesada -- Ada binding for the ncurses text user interface library
Thanks to the initiative and efforts of Nicolas Boulenguez, I am happy to announce that the Ada binding to ncurses is now part of Debian unstable, with the same level of quality as all other Ada packages. The following packages are now but an "aptitude install" away: libncursesada-doc - Ada binding to the ncurses text interface library: documentation libncursesada1 - Ada binding to the ncurses text interface library: shared library libncursesada1-dbg - Ada binding to the ncurses text interface library: debug symbols libncursesada1-dev - Ada binding to the ncurses text interface library: development These packages add to the already extensive complement of libraries present in Debian for the Ada developer. Enjoy! -- Ludovic Brenta. ...

The Ada Connection = Ada-Europe 2011 + Ada Conference UK 2011
----------------------------------------------------------------------- FINAL Call for Participation *** UPDATED Program Summary *** The Ada Connection 16th International Conference on Reliable Software Technologies - Ada-Europe 2011 + Ada Conference UK 2011 20 - 24 June 2011, Edinburgh, UK http://www.ada-europe.org/conference2011 *** Full Program available on conference web site *** *** Check out the tutorial program! *** *** Printed proceedings available *** *** Register now! *** ----------------------------------------------------------------------- Press release: The Ada Connection = Ada-Europe 2011 + Ada Conference UK 2011 International experts meet in Edinburgh Edinburgh (8 June 2011 20:00) - The Ada Connection, which combines the 16th International Conference on Reliable Software Technologies - Ada-Europe 2011 - with Ada Conference UK 2011, will take place from 20 to 24 June in Edinburgh, Scotland's capital city and the UK's most popular conference destination. The Ada Connection is the union of two Ada events that have both been very successful in their own right. The Ada-Europe series of conferences has become established as an international forum ...

The Ada Connection = Ada-Europe 2011 + Ada Conference UK 2011 #2
----------------------------------------------------------------------- FINAL Call for Participation *** UPDATED Program Summary *** The Ada Connection 16th International Conference on Reliable Software Technologies - Ada-Europe 2011 + Ada Conference UK 2011 20 - 24 June 2011, Edinburgh, UK http://www.ada-europe.org/conference2011 *** Full Program available on conference web site *** ...

C to ADA or FORTRAN to ADA
Where I can found a tranlator from C/Fortran source code to ADA? for winXP. "TC" <tecomeco@inwind.it> wrote in message news:oGFPe.32034$HM1.904119@twister1.libero.it... > Where I can found a tranlator from C/Fortran source code to ADA? for > winXP. > if you can't find one for XP, you could always install cygwin on XP and use c2ada there. You can download c2ada tar file from here. It should not be hard to make it compile/build on cygwin, you might have to modify the makefile etc... http://12000.org/my_notes/ada/index.htm Nasser ...

A few questions on Ada and Ada implementations
Hi, I have been looking over Ada (the 95 variant) and it looks like a great language. Are there any free (as in no license restrictions, not GPL- anything) GUI libraries? What choices are there for handling output besides text? gcc-Ada looks good but I prefer to avoid gcc as much as I can and I also haven't found anything but GtkAda that seems to be GPLed. What Ada toolchains are available for 64 bit Linux that can be used to generate 32 or 64 bit Linux/UNIX executables that are in a hobbyist's price range (let's say up to 1000 USD). Do they include their own GUI libraries? Do they include any data base bindings? What else should I look for? I don't need a 2005 compliant toolchain as far as I know. I'll be ok with an Ada95 compiler. And will I be able to generate Windows executables from any of these Linux-based toolchains? Basically I want to know what kind of investment I need to make to have an unencumbered Ada95 toolchain with all the features I need to write and deploy general applications without having to go fishing for libraries. Thank you. Adacore has a freely available GPL compiler available for Linux or Windows, though I am unsure if it generates 64-bit executables I know it will generate 32-bit ones: http://libre.adacore.com/libre/ I haven't done any investigating into GUI libraries for Ada yet so I cannot answer regarding that. On 12/18/2010 5:00 PM, Shark8 wrote: > Adacore has a freely available GPL compiler available for Lin...

Ada principles outside of Ada
Hi people, Just for fun, two quotes from a captivating thesis about Isabelle, a pro= of = assistance and authoring environment, which has some words Ada users may= = recognize as their own typical words. In Markus Wenzel's 2001 thesis, titled =E2=80=9CIsabelle/Isar =E2=80=94 a versatile environment for huma= n-readable formal = proof documents=E2=80=9D http://tumb1.biblio.tu-muenchen.de/publ/diss/in/2002/wenzel.pdf Page 18 (printed page 4) =E2=80=9CHere the primitive layer consists of abstract theorem constructors of the inference kernel, according to 'Correctness by Construction' by Milner.=E2=80=9D Page 27 (printed page 13), talking about the Isar language design = rationals: =E2=80=9CPrimacy of readability over writability.=E2=80=9D I may have a later question regarding Ada and SPARK and Isabelle. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity ...

Ncurse with ada
does anyone here has using NCURSE 5-7? I have completed install NCURSE 5-7, but i don't know how to compile it, since i try to compile it's sample file (ncurses.adb) will produce an error message like "terminal_interface.ads" not found I try it for days, search some sample or ncurse tutorial, but i never found it. Rieska Hendrawan wrote on comp.lang.ada: > does anyone here has using NCURSE 5-7? > > I have completed install NCURSE 5-7, but i don't know how to compile > it, since i try to compile it's sample file (ncurses.adb) will produce > an error message like "terminal_interface.ads" not found > > I try it for days, search some sample or ncurse tutorial, but i never > found it. This seems like an error in the installation process. What operating system and compiler do you use? Where did you download ncurses.adb from? What command did you use to compile it? Where is terminal_interface.ads on your system? Note that, if your operating system is Debian, a simpler alternative is to "aptitude install libtexttools2-dev" and read the instructions in /usr/share/ada/adainclude/texttools.gpr to build your application. TextTools is a high-level library on top of ncurses, it provides widgets such as buttons, scroll bars and windows. HTH -- Ludovic Brenta. ...

ada without ada libraries?
Hi Everyone I just got my compiler set up the way I want it and I am ready for my first ada project. I have spent sometime with lua. Lua's library support is terrible but lots of people love the language. Many people just build a rough skeleton application in C and call it from lua. Lua handles all the type checking and much of the logic in this arrangement and C is mostly just library code. Would this same approach seem logical for ada? -Patrick On 02/07/2012 04:14 PM, Patrick wrote: > Hi Everyone > > I just got my compiler set up the way I want it and I am ready for my > first ada project. > > I have spent sometime with lua. Lua's library support is terrible but > lots of people love the language. Many people just build a rough > skeleton application in C and call it from lua. > > Lua handles all the type checking and much of the logic in this > arrangement and C is mostly just library code. > > Would this same approach seem logical for ada? -Patrick This might make sense, if you're claiming that Ada's "library support is terrible"; else, why would you make this comparison? It sounds like you want to use Ada, but not use the Ada libraries. If you instead want to use Ada with a library for which you don't have an Ada interface, you can build (or look for) a binding to that library. This is done in Ada, not in another language. See the Ada packages Interfaces.*. Typically, you don't need...

Is it Ada 2005 or Ada 2007?
I have seen the "new" Ada referred to as both Ada 2005 and Ada 2007. When referring to the new standard and without referring to any particular implementation of it, which is correct or preferred? I sort of understand that the standard wasn't agreed to until 2007 but that might not be the defining event. Is there an official designation or are left to our own devices to call it what we want? Jerry writes: > I have seen the "new" Ada referred to as both Ada 2005 and Ada 2007. > When referring to the new standard and without referring to any > particular implementation of it, which is correct or preferred? I sort > of understand that the standard wasn't agreed to until 2007 but that > might not be the defining event. Is there an official designation or > are left to our own devices to call it what we want? Formally, it is "ISO/IEC 8652:1995(E) with Corrigendum 1 and Amendment 1". Officially informally (!), it is "Ada 2005" because ARM 3.1/2 says so. That is the result of a majority agreement between the members of the working group, most of whom are compiler vendors. Some people call it "Ada 2007" because the ISO formally approved and published Amendment 1 in 2007. Some people call it "Ada". Some people call it "Amendment 1". It doesn't really matter, except perhaps to marketeers. Are there any in the Ada business? -- Ludovic Brenta. It may change, but as of today, th...

Ada Advocacy
For those of you that are not familiar there is an e-mail list called Team-Ada (see the Ada FAQ - http://www.adapower.com/faq - but to make things short you join by sending the word subscribe to team-ada@acm.org) where Ada advocacy is discussed. I've started this evening on the list the first of what I hope will be many of my suggestions to Juice Up Ada (There was certainly tons of Juice flowing when the Juice was on trial, perhaps we can get some going with Ada a bit on trial). I've posted the following (Please join and respond on Team-Ada@acm.org for this one): Welcome to t...

Ada-java, java-ada
Hello, I am actually working with ada83 and going forward to Ada95. On the way I would like to do some tests using java. 1. Does someone have some good links on java->ada83 and java->ada95 or some simple demos ? 2. Is it possible to call java FROM ada83 ? Can I use JNI ? 3. Is it possible to call java FROM ada95 ? Can I use JNI ? Thank you, S´┐Żbastien. __________________________________ Do you Yahoo!? Win a $20,000 Career Makeover at Yahoo! HotJobs http://hotjobs.sweepstakes.yahoo.com/careermakeover S=E9bastien Thoos wrote: > I am actually working with &...

Ada
I was just wondering if it is possible to change the colour of a string in ada 95? In article <1106770009.493447.308200@c13g2000cwb.googlegroups.com>, mcf501@york.ac.uk writes: > I was just wondering if it is possible to change the colour of a string > in ada 95? Ada strings have no attribute called "color". If you mean to change the color in which a string is displayed, that depends on your operating system and display hardware. On an older terminal, for instance, the only two color choices are Black and White. <mcf501@york.ac.uk> wrote in message news:11067...

Ada library, interfacing ADA with C
Hello everybody !!! I have to interface ADA with C and I would like to create an ADA library. I read the gnat manual and it is said that i can use gnatmake and a project library. So I use gnatmake: $ gnatmake -Pmy_lib.gpr I get the following message: powerpc-eabispe-gnatbind -n -o b~lib.adb -Llib prog1.ali prog2.ali powerpc-eabispe-gcc -c b~lib.adb building static library for project my_lib powerpc-eabispegnatmake: powerpc-elf-ar not found in path. In fact I haven't powerpc-elf-ar on my computer, so i created a link to it with : ln -s powerpc-eabispe-ar powerpc-elf-ar But the problem is the same and all my PATH are good. My project library my_lib.gpr /******** Library project*****/ project My_Lib is for Source_Dirs use ("SRC"); for Object_Dir use "CGN"; for Library_Name use "lib"; for Library_Dir use "LIB"; for Library_Kind use "static"; end My_lib; Because it didn't work, i tried to create a library with the following command: powerpc-eabispe-ar rc libmy_lib.a prog1.o prog2.o but there is an other problem because gnatlink ask me to supply an ALI file which has a corresponding bind file so I can't create an executable. Could you say me how must I use a library file with gnatlink (which command use) ? I forgot to say you I use Cygwin a Unix emulator. david-mamour@hotmail.fr wrote: > Hello everybody !!! > > I have to interface ADA with C and I would like to create an ADA &...

any ada operating systems? any ada database?
curious esp when see www.prevayler.org could object prevalence be ported to ada? maybe without needing objects? ...

Is Ada on VAX/VMS Ada 95
What are the differences of Vax Ada and Ada 95? Thank you, Christopher Lusardi In article <1151342831.094972.295360@y41g2000cwy.googlegroups.com>, "Chris L" <clusardi2k@aol.com> writes: > What are the differences of Vax Ada and Ada 95? VAX Ada conforms to the Ada 83 standard. One major reason why there is no Ada 95 implementation on VAX is that Ada 95 requires IEEE floating point semantics while the VAX hardware provides VAX floating point semantics. VAX Ada became DEC Ada became Compaq Ada became HP Ada and runs on either VAX or Alpha, implementing Ada 83. If you want an Ada 95 implementation on the VMS operating system, use GNAT Ada 95 for Alpha VMS. It has many of the VMS-specific capabilities of the original VAX Ada. Kilgallen@SpamCop.net (Larry Kilgallen) writes: > In article <1151342831.094972.295360@y41g2000cwy.googlegroups.com>, > "Chris L" <clusardi2k@aol.com> writes: > >> What are the differences of Vax Ada and Ada 95? > > VAX Ada conforms to the Ada 83 standard. > > One major reason why there is no Ada 95 implementation on VAX is > that Ada 95 requires IEEE floating point semantics while the VAX > hardware provides VAX floating point semantics. I don't believe that's correct. The floating-point model is intended to be flexible enough to cover any existing hardware that implements a mantissa-exponent model (IEEE, VAX, IBM, etc.). See section G.2.1. -- Keith Thompso...

Ada.Real_Time Vs. Ada.Calendar
I need to compare data types that are stored in Ada.Real_Time.Time and Ada.Calendar.Time. I know I can get a seconds count from each package. However, is it the same time base? Is it dependant on the hardware it is run on? markp wrote: > I need to compare data types that are stored in Ada.Real_Time.Time and > Ada.Calendar.Time. I know I can get a seconds count from each package. > However, is it the same time base? Is it dependant on the hardware it > is run on? In general, you can't count on them having any meaningful relationship. Real_Time may be a count of ticks since the program started, for example, while Calendar must be a date and time CE. How they are implemented is not specified, which is not surprising. For a specific compiler and platform, you may be able to make use of compiler-dependent information to relate the two. GNAT, for example, defines both Time types as "new Duration". That doesn't guarantee that the stored values have the same meaning, though. -- Jeff Carter "We burst our pimples at you." Monty Python & the Holy Grail 16 "Jeffrey R. Carter" <spam.not.jrcarter@acm.not.spam.org> writes: > In general, you can't count on them having any meaningful > relationship. Real_Time may be a count of ticks since the program > started, for example, while Calendar must be a date and time CE. And I don't think it would be right to expect the relationship to be constant, either -...

Ada to Ada Pragma Export/Import
I need to deliver object files (coded in Ada) to another team who will access the public routines in their Ada code. I cannot deliver the package bodies (but can deliver the object files, the specs, and the ALI files). For example, suppose I want do deliver the hello_pkg.o and hello_pkg.ads from the code below. My assumption is that I need to export the Say_It procedure in the spec, and then the other team would need to import this procedure into their code. Is this correct? And what is the syntax required? I've tried the following but can't figure it out. Thanx much for any help. Andy askeyaj@gmail.com -------- with Text_Io; package Hello_Pkg is pragma Export (Ada, Say_It, "say_it"); -- CORRECT??? procedure Say_It; end Hello_Pkg; package body Hello_Pkg is procedure Say_It is begin Text_Io.Put_Line("Hello World."); end Say_It; end Hello_Pkg; with Hello_Pkg; procedure Test_Hello is pragma Import (Ada, Say_It, "say_it"); -- NOT SURE WHAT TO DO HERE begin Say_It; end Test_Hello; AskeyAJ@gmail.com wrote: > I need to deliver object files (coded in Ada) to another team who will > access the public routines in their Ada code. I cannot deliver the > package bodies (but can deliver the object files, the specs, and the > ALI files). For example, suppose I want do deliver the hello_pkg.o and > hello_pkg.ads from the code below. > > My assumption is that I need to export the Say...

Ada noob here! Is Ada widely used?
I'm new to Ada, but not to programming in general. Decided to learn a new language, and Ada was of interest to me. Am enjoying the language so far - using GNAT GPL nad Coronado's old tutorial. Just curious to know if Ada is still widely used, and in what area(s) does it excel, e.g. data processing, number crunching, graphics, etc? TIA.. -- Duke *** Tolerance becomes a crime, when applied to evil [Thomas Mann] *** On May 20, 8:53=A0am, Duke Normandin <dukeofp...@ml1.net> wrote: > I'm new to Ada, but not to programming in general. Decided to learn a new > language, and Ada was of interest to me. Am enjoying the language so far = - > using GNAT GPL nad Coronado's old tutorial. > > Just curious to know if Ada is still widely used, and in what area(s) doe= s > it excel, e.g. data processing, number crunching, graphics, etc? TIA.. > -- > Duke > *** Tolerance becomes a crime, when applied to evil [Thomas Mann] *** There are others who will be more qualified to answer this than me, but annecdotally it sounds to me like Ada has a wider base in Europe right now than in the US. The language is good for embedded, real-time, and safety-critical software where high reliability is required. It is often used in the space and aviation industries for these reasons. Some like Ada as a teaching language. A lot of its syntax is Pascal- like. A frequently-cited weakness in the academic area is that there are not a lot of people developing...

Looking For Information On The XD Ada Compiler (Reference Manual?) : How Is XD Ada Different From The 83/95 Standards : Thus What Are The Problems In Using XD Ada
My questions are on the subject line. Thank you, Christopher Lusardi Chris L wrote: > My questions are on the subject line. Well that is an odd place for them. In order. I don't have one. XD Ada implements Ada 83 per the standard. Not sure how the prior answers really provide any insight into the last question. If you remove "thus" from the last question I would the problems are 1) It runs on a VAX. 2) It is often used on very small processors and thus even though you get full Ada, you might not be able to use it. 3) It generally targets really old processors that would be underpowered even for a microcontroller by todays standards. 4) There are likely other factors (assembly language, runtime, non-portable code, etc that will dominate any problems you run into) Try the rather obvious: www.swep-eds.com or swep.sales@eds.com - Rod, SPARK Team ...

Q: recent Ada grammar for Ada tools ?
Hello, Is there some free, recent Ada grammar for Ada tools ? By "Ada tool", I mean ayacc or something newer. The best match I found is the Ada 95 grammar/lexer for yacc/lex on the AdaIC site. But all for C; at least a ayacc/aflex version would be better... TIA ______________________________________________________________ Gautier -- http://www.mysunrise.ch/users/gdm/index.htm Ada programming -- http://www.mysunrise.ch/users/gdm/gsoft.htm NB: For a direct answer, e-mail address on the Web site! Hi Gautier, > By "Ada tool", I mean ayacc or something newer. > The best match I found is the Ada 95 grammar/lexer for yacc/lex on the > AdaIC > site. But all for C; at least a ayacc/aflex version would be better... I have an "old" aflex/ayacc link on my homepage. This is a fix for the Irvive University (IIRC) version of aflex/ayacc... I just don't remember if it is Ada83 or Ada95. Maybe a good start. Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net --| "The best way to travel is by means of imagination" --| --| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595 Pascal Obry wrote: > Hi Gautier, > >> By "Ada tool", I mean ayacc or something newer. >> The be...

A physical comparison of Ada 95 and Ada 2005
A few days ago I received an eagerly awaited Springer hard-copy of the Ada 2005 LRM (courtesy of Ada Europe, to whom many thanks). Being less busy than usual I have had some time to study this work and compare it to the earlier Springer LRM for Ada 95, with the following results: Ada 95 Ada 2005 Weight (g) : 985 1205 Thickness (mm): 32 27 The height and width are the same, so the overhead in terms of desk-top area is unchanged, which is good. The result of this comparison is thus that Ada 2005 is 44.9% denser than Ada 95, as represented by their respective LRMs. The analogous comparison based on the text of the LRMs was not in scope for this study :-) -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ . Perhaps Ada 2005 is not the only (as they say here) "dense" thing around :-) Yeah - I have a little too much time too thanks for the laugh Peter It WAS supposed to be funny, right? :-) Niklas Holsti wrote: > A few days ago I received an eagerly awaited Springer hard-copy of the > Ada 2005 LRM (courtesy of Ada Europe, to whom many thanks). -- deleted some -- The result of this comparison is thus > that Ada 2005 is 44.9% denser than Ada 95, as represented by their > respective LRMs. The analogous comparison based on the text of the LRMs > was not in scope for this study :-) > > -- > Niklas Holsti > Tidorum Ltd > niklas holsti tidorum fi > ....

Re: Standard Ada Preprocessor (Was: why ada is so unpopular ?)
**** Post for FREE via your newsreader at post.usenet.com **** I'm interested in knowing why no one has mentioned that 40 years ago the COBAL language included a statement to specify the machine and/or operating system for the executable code. If you wanted the program to run on a UNIX box, you essentially entered UNIX at the head of the program; if you wanted it to run on a Windows box you entered Windows. The rest of the program remained the same. (Its been a long time since I used this feature so I don't remember the exact syntax. Maybe someone else knows?) Of course, very few ...

Announce: D_Bus/Ada, talk with your desktop in Ada
I'm proud to announce the first release of D_Bus/Ada. The D_Bus/Ada library provides an Ada binding to the D-Bus message bus used for inter-process communication on most modern Linux desktop systems. D_Bus/Ada supports all but two basic D-Bus types (file descriptor and signature types are not yet implemented) and all container types [1]. The current release focuses on the client side of the D-Bus API but it is also possible to provide D-Bus services written in Ada using the service object interface of D_Bus/Ada. For further information visit the D_Bus/Ada project page at [2]. Kind regards, - reto [1] - http://dbus.freedesktop.org/doc/dbus-specification.html#type-system [2] - http://www.codelabs.ch/dbus-ada Le Mon, 05 Dec 2011 12:17:30 +0100, Reto Buerki <reet@codelabs.ch> a =C3= =A9crit: > [2] - http://www.codelabs.ch/dbus-ada At the bottom of the above page, in section =E2=80=9CExamples=E2=80=9D, = there's a with D_Bus.Arguments.Basic; with D_Bus.Arguments.Containers; Then later pragma Unreferenced (D_Bus.Arguments.Basic); pragma Unreferenced (D_Bus.Arguments.Containers); Do you withed both for initialization side effects ? -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity Le Mon, 05 Dec 2011 12:17:30 +0100, Reto Buerki <reet@code...

Web resources about - Ncurses and Ada - comp.lang.ada

ncurses - Wikipedia, the free encyclopedia
The first curses library was developed at the University of California at Berkeley, for a BSD operating system, around 1980 to support a screen-oriented ...

mscdex/node-ncurses · GitHub
node-ncurses - An ncurses binding for node.js

Open Directory - Games: Board Games: Abstract: Territory Games: Abalone
about dmoz - dmoz blog - suggest URL - update listing - become an editor - report abuse/spam - help the entire directory only in Territory_Games/Abalone ...

Source Browser
Name Size Parent Directory - Apple16X50Serial/ - Apple3Com3C90x/ - AppleAC97Audio/ - AppleADBButtons/ - AppleADBDisplay/ - AppleADBKeyboard/ ...

Blog Carnival - gene genie
Blog Communities Publishing Magazines Share - gene genie Gene, genetics, medicine, disease Description ¤ A blog carnival on genes, gene-related ...

Spotify - Blackboard
Spotify is a DRM-based music streaming service offering unlimited streaming of selected music from a range of major and independent record labels ...

Commands using lsattr - commandlinefu.com
Discover great UNIX and bash commands using the lsattr function. Discuss these commands along with many more at commandlinefu.com

Cygwin Package List
Cygwin Install Cygwin Update Cygwin Search Packages Licensing Terms Cygwin/X Community Reporting Problems Mailing Lists Newsgroups Gold Stars ...

How to Install Ruby on Rails on Ubuntu 12.04 from Source
... libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev ...

Working with BASH environment variables (simple commands for beginners)
Working with BASH environment variables (simple commands for beginners) - Geeks Worldwide - You'll learn the following in this tutorial. * Display ...

Resources last updated: 3/23/2016 2:32:22 AM