From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,a0d5afcf8d13378c X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!proxad.net!feeder1-2.proxad.net!cleanfeed2-a.proxad.net!nnrp19-2.free.fr!not-for-mail From: Ali Bendriss Subject: Re: How to include Win_IO for my project? Newsgroups: comp.lang.ada References: <92dda95d-161e-4337-8a60-698c3c8372c7@r15g2000prd.googlegroups.com> User-Agent: Pan/0.133 (House of Butterflies) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 20 Jan 2009 01:50:35 GMT Message-ID: <49752deb$0$10085$426a34cc@news.free.fr> Organization: Guest of ProXad - France NNTP-Posting-Date: 20 Jan 2009 02:50:35 MET NNTP-Posting-Host: 89.180.129.164 X-Trace: 1232416235 news-4.free.fr 10085 89.180.129.164:57897 X-Complaints-To: abuse@proxad.net Xref: g2news2.google.com comp.lang.ada:4416 Date: 2009-01-20T02:50:35+01:00 List-Id: On Sun, 18 Jan 2009 12:42:04 -0800, tolkamp wrote: > > Thank you for this explanation. Now I have successful added the > directory win_io_3.0_scr_dos to my project. After this I have added the > following source code of my project: - Time, Speed : Float; > - My_Plot : Plot_Window_Type; > - Plot_Window (My_Plot, "Time", "Speed"); -- create plot window - > Add_Point (My_Plot, Time, Speed); > > Compilation is error free, but when an executable is made the following > error occurs in package plot_windows.adb: "Add_Plot" is undefined. > > What do I wrong? "Add_Plot" doesn't exist anymore in recent version of GtkAda. I've done a small patch against win_io_3.0_src to make it compile with GtkAda-gpl-2.10.2. I've done a light test and it's look like OK no warranty of course. copy the rest of the message in a file as "add_plot.patch" inside win_io_3.0_src then run patch -p0 Resp.Plot, - Axis => Axis_Bottom, + (Gtk.Extra.Plot.Get_Axis (Plot => Resp.Plot, + Axis => Axis_Bottom), Title => X_Axis_Title); Axis_Set_Visible - (Plot => Resp.Plot, - Axis => Axis_Bottom, + (Gtk.Extra.Plot.Get_Axis (Plot => Resp.Plot, + Axis => Axis_Bottom), Visible => True); Axis_Set_Visible - (Plot => Resp.Plot, - Axis => Axis_Top, + (Gtk.Extra.Plot.Get_Axis (Plot => Resp.Plot, + Axis => Axis_Top), Visible => False); Axis_Move_Title - (Plot => Resp.Plot, - Axis => Axis_Bottom, + (Gtk.Extra.Plot.Get_Axis (Plot => Resp.Plot, + Axis => Axis_Bottom), Angle => Angle_0, X => 0.5, Y => 0.9); Axis_Show_Title - (Plot => Resp.Plot, - Axis => Axis_Bottom); + (Gtk.Extra.Plot.Get_Axis (Plot => Resp.Plot, + Axis => Axis_Bottom)); Axis_Set_Title - (Plot => Resp.Plot, - Axis => Axis_Left, + (Gtk.Extra.Plot.Get_Axis (Plot => Resp.Plot, + Axis => Axis_Left), Title => Y_Axis_Title); Axis_Set_Visible - (Plot => Resp.Plot, - Axis => Axis_Left, + (Gtk.Extra.Plot.Get_Axis (Plot => Resp.Plot, + Axis => Axis_Left), Visible => True); Axis_Set_Visible - (Plot => Resp.Plot, - Axis => Axis_Right, + (Gtk.Extra.Plot.Get_Axis (Plot => Resp.Plot, + Axis => Axis_Right), Visible => False); Axis_Show_Title - (Plot => Resp.Plot, - Axis => Axis_Left); + (Gtk.Extra.Plot.Get_Axis (Plot => Resp.Plot, + Axis => Axis_Left)); Task_Support.Leave; return Resp;