* How to compile Ada.Text_IO.xxxxx files (Was: Random Access in Ada.Text_IO files) @ 2003-02-12 18:54 Micha� Morawski 2003-02-12 20:21 ` Jeffrey Carter ` (3 more replies) 0 siblings, 4 replies; 7+ messages in thread From: Micha� Morawski @ 2003-02-12 18:54 UTC (permalink / raw) Does anybody know how to compile the child package of standard package (like Ada.Text_IO.Random). Normally GNAT refuse to compile it. Michal Morawski ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to compile Ada.Text_IO.xxxxx files (Was: Random Access in Ada.Text_IO files) 2003-02-12 18:54 How to compile Ada.Text_IO.xxxxx files (Was: Random Access in Ada.Text_IO files) Micha� Morawski @ 2003-02-12 20:21 ` Jeffrey Carter 2003-02-12 22:42 ` GTKAda (Glade Gate problem) root ` (2 subsequent siblings) 3 siblings, 0 replies; 7+ messages in thread From: Jeffrey Carter @ 2003-02-12 20:21 UTC (permalink / raw) Micha� Morawski wrote: > Does anybody know how to compile the child package of standard package (like > Ada.Text_IO.Random). > Normally GNAT refuse to compile it. If you're using GNAT, see the top-secret GNAT documentation for the compiler switch that lets you do this. For other compilers, see their top-secret documentation; if it doesn't tell you how to do that, contact the vendor. -- Jeff Carter "When danger reared its ugly head, he bravely turned his tail and fled." Monty Python and the Holy Grail ^ permalink raw reply [flat|nested] 7+ messages in thread
* GTKAda (Glade Gate problem) 2003-02-12 18:54 How to compile Ada.Text_IO.xxxxx files (Was: Random Access in Ada.Text_IO files) Micha� Morawski 2003-02-12 20:21 ` Jeffrey Carter @ 2003-02-12 22:42 ` root 2003-02-12 23:00 ` How to compile Ada.Text_IO.xxxxx files (Was: Random Access in Ada.Text_IO files) Anh_Vo 2003-02-13 5:41 ` Steve 3 siblings, 0 replies; 7+ messages in thread From: root @ 2003-02-12 22:42 UTC (permalink / raw) When trying to get Glade 0.6.4 to generate Ada code for the GTKAda 'Editor' example, I get the following error. (gate-in.exe:5562): GLib-GObject-WARNING **: gsignal.c:1007: unable to lookup signal "delete_event" of unloaded type `GtkWindow' Couldn't generate Ada code. Exiting. System is Redhat 8.0 Any ideas, hints, or clues are appreciated. me ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to compile Ada.Text_IO.xxxxx files (Was: Random Access in Ada.Text_IO files) 2003-02-12 18:54 How to compile Ada.Text_IO.xxxxx files (Was: Random Access in Ada.Text_IO files) Micha� Morawski 2003-02-12 20:21 ` Jeffrey Carter 2003-02-12 22:42 ` GTKAda (Glade Gate problem) root @ 2003-02-12 23:00 ` Anh_Vo 2003-02-13 5:41 ` Steve 3 siblings, 0 replies; 7+ messages in thread From: Anh_Vo @ 2003-02-12 23:00 UTC (permalink / raw) According to the GNAT User's Guide, option -gnatg should be used. A. Vo "Micha Morawski" <morawski@zsk.p.lodz.pl> wrote in message news:<b2e5ah$qpf$1@atlantis.news.tpi.pl>... > Does anybody know how to compile the child package of standard package (like > Ada.Text_IO.Random). > Normally GNAT refuse to compile it. > > Michal Morawski ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to compile Ada.Text_IO.xxxxx files (Was: Random Access in Ada.Text_IO files) 2003-02-12 18:54 How to compile Ada.Text_IO.xxxxx files (Was: Random Access in Ada.Text_IO files) Micha� Morawski ` (2 preceding siblings ...) 2003-02-12 23:00 ` How to compile Ada.Text_IO.xxxxx files (Was: Random Access in Ada.Text_IO files) Anh_Vo @ 2003-02-13 5:41 ` Steve 2003-02-13 10:22 ` Micha� Morawski 3 siblings, 1 reply; 7+ messages in thread From: Steve @ 2003-02-13 5:41 UTC (permalink / raw) [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 721 bytes --] I'm sure you can find the answer to your question in the GNAT documentation (RTFM), but keep in mind: From the Ada 95 Reference Manual A.2: (2) In the standard mode, it is illegal to compile a child package of Ada. Also note: From A (4) The implementation may restrict children of language-defined library units (other than Standard). In my opinion it is not a good practice to create packages that are children of Ada. Steve (The Duck) "Micha� Morawski" <morawski@zsk.p.lodz.pl> wrote in message news:b2e5ah$qpf$1@atlantis.news.tpi.pl... > > Does anybody know how to compile the child package of standard package (like > Ada.Text_IO.Random). > Normally GNAT refuse to compile it. > > Michal Morawski > > > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to compile Ada.Text_IO.xxxxx files (Was: Random Access in Ada.Text_IO files) 2003-02-13 5:41 ` Steve @ 2003-02-13 10:22 ` Micha� Morawski 2003-02-13 18:58 ` Michal Nowak 0 siblings, 1 reply; 7+ messages in thread From: Micha� Morawski @ 2003-02-13 10:22 UTC (permalink / raw) [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain, Size: 1745 bytes --] Oh yes, maybe this is not wise (or good practice), but this requires only a few lines of code in the child unit, while "wise" solution is rather tiresome - many, many lines. But thank You; I can compile my 14-line long child package and my problem is solved! MM -- ############################################ ## Micha� Morawski ## 95-200 Pabianice, Sempo�owskiej 5 m 13 ## tel/fax ++48 42 2262228 ############################################ Do Juliusza Kossaka przyszed� znajomy i zacz�� opowiada� o swoim psie: - Je�li ka�� mu zje�� jab�ko, to on je zje, chocia� nie lubi jab�ek. A gdy po�o�� przed nim kawa�ek mi�sa i powiem: "nie rusz", to on go nie zje, nawet gdy jest bardzo g�odny. - Zawsze uwa�a�em, �e psy to m�dre zwierz�ta - powiedzia� Kossak - ale teraz widz�, �e s� tak samo g�upie jak ludzie. "Steve" <nospam_steved94@attbi.com> wrote in message news:AeG2a.82167$iG3.10580@sccrnsc02... > I'm sure you can find the answer to your question in the GNAT documentation > (RTFM), but keep in mind: > > From the Ada 95 Reference Manual A.2: > (2) In the standard mode, it is illegal to compile a child package of Ada. > > Also note: From A > (4) The implementation may restrict children of language-defined library > units (other than Standard). > > > In my opinion it is not a good practice to create packages that are children > of Ada. > > Steve > (The Duck) > > "Micha� Morawski" <morawski@zsk.p.lodz.pl> wrote in message > news:b2e5ah$qpf$1@atlantis.news.tpi.pl... > > > > Does anybody know how to compile the child package of standard package > (like > > Ada.Text_IO.Random). > > Normally GNAT refuse to compile it. > > > > Michal Morawski > > > > > > > > > > ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: How to compile Ada.Text_IO.xxxxx files (Was: Random Access in Ada.Text_IO files) 2003-02-13 10:22 ` Micha� Morawski @ 2003-02-13 18:58 ` Michal Nowak 0 siblings, 0 replies; 7+ messages in thread From: Michal Nowak @ 2003-02-13 18:58 UTC (permalink / raw) To: comp.lang.ada usegroup->mailing list gateway [-- Warning: decoded text below may be mangled, UTF-8 assumed --] [-- Attachment #1: Type: text/plain; charset=us-ascii, Size: 519 bytes --] On 2003-02-13 at 11:22 Micha³ Morawski wrote: >Do Juliusza Kossaka przyszed³ znajomy i zacz±³ opowiadaæ o swoim psie: >- Je¶li ka¿ê mu zje¶æ jab³ko, to on je zje, chocia¿ nie lubi jab³ek. A gdy >po³o¿ê przed nim kawa³ek miêsa i powiem: "nie rusz", to on go nie zje, >nawet >gdy jest bardzo g³odny. >- Zawsze uwa¿a³em, ¿e psy to m±dre zwierzêta - powiedzia³ Kossak - ale >teraz widzê, ¿e s± tak samo g³upie jak ludzie. Wow, what I see, a Polish joke on CLA :-) Greetings from Poznan, - Michal ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2003-02-13 18:58 UTC | newest] Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2003-02-12 18:54 How to compile Ada.Text_IO.xxxxx files (Was: Random Access in Ada.Text_IO files) Micha� Morawski 2003-02-12 20:21 ` Jeffrey Carter 2003-02-12 22:42 ` GTKAda (Glade Gate problem) root 2003-02-12 23:00 ` How to compile Ada.Text_IO.xxxxx files (Was: Random Access in Ada.Text_IO files) Anh_Vo 2003-02-13 5:41 ` Steve 2003-02-13 10:22 ` Micha� Morawski 2003-02-13 18:58 ` Michal Nowak
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox