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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!b2g2000yqi.googlegroups.com!not-for-mail From: "RasikaSrinivasan@gmail.com" Newsgroups: comp.lang.ada Subject: Re: Bug in GtkAda Date: Fri, 16 Oct 2009 03:20:39 -0700 (PDT) Organization: http://groups.google.com Message-ID: <27a2a466-27bb-4765-8b15-8c40c3973015@b2g2000yqi.googlegroups.com> References: <03e9d0e2-bff2-4450-aa62-6f345cef403b@z2g2000yqm.googlegroups.com> <1hvo3adu70mnu.b4e7ql4yhlp8$.dlg@40tude.net> NNTP-Posting-Host: 98.216.109.119 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1255688439 14387 127.0.0.1 (16 Oct 2009 10:20:39 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 16 Oct 2009 10:20:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: b2g2000yqi.googlegroups.com; posting-host=98.216.109.119; posting-account=mZyFSQoAAABfOmklsh1d8TPbS2LncUKl User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.3) Gecko/20090824 Firefox/3.5.3 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8709 Date: 2009-10-16T03:20:39-07:00 List-Id: On Oct 16, 3:33=A0am, "Dmitry A. Kazakov" wrote: > On Thu, 15 Oct 2009 18:22:49 -0700 (PDT), RasikaSriniva...@gmail.com wrot= e: > > I have a piece of code that reads : > > -------------------- > > =A0 =A0 =A0 Gtk.Text_Attributes.Gtk_New(Special_Atr); > > =A0 =A0 =A0 Gdk.Color.Set_Rgb( Fg , 16#Ffff# , 0 , 0 ) ; > > =A0 =A0 =A0 Gtk.Text_Attributes.Set_Fg_Color > > (Gtk.Text_Attributes.Get_Appearance(Special_Atr),Fg); > > --------------- > > > I am getting the following error while linking: > > > C:\Projects\Gtk\regexp>gprbuild -p -Pregexp > > creating auto.cgpr > > gcc -c -g -gnat05 -gnata regexp_widgets.adb > > regexp_widgets.adb:41:04: warning: variable "Normal_Atr" is never read > > and never assigned > > regexp_widgets.adb:126:07: warning: variable "Searchbtn" is never read > > and never assigned > > gprbind regexp.bexch > > gnatbind regexp.ali > > gcc -c b__regexp.adb > > gcc regexp.o -L/minsk.a/gnatmail/gcc-43/build-minsk/gtkada/install/lib/ > > gtkada/static -Wl,-luuid -L/minsk.a/gnatmail/gcc-43/install-minsk/gtk/ > > lib -L/unix/gtk+gps/ > > gimpwin-dev/lib -lgtk-win32-2.0 -lgdk-win32-2.0 -limm32 -lshell32 - > > lole32 -latk-1.0 -lgdk_pixbuf-2.0 -ljpeg -lpng -lpangocairo-1.0 - > > lcairo -lpangowin32-1.0 -lgdi > > 32 -lpango-1.0 -lm -lgobject-2.0 -lgmodule-2.0 -lglib-2.0 -lintl - > > luser32 -Lc:\gnat\2009\gtkada\lib\gnat\.. -Lc:\gnat\2009\gtkada\lib > > \gnat\../../include/gtkada - > > o regexp.exe > > c:\projects\gtk\regexp\.objs\regexp_widgets.o: In function > > `regexp_widgets__make': > > c:/projects/gtk/regexp/regexp_widgets.adb:180: undefined reference to > > `_ada_text_attribute_get_appearance' > > collect2: ld returned 1 exit status > > gprbuild: link of regexp.adb failed > > > ------------------------------------------ > > Sounds like a bug to me. Any ideas? > > I don't see linking your program with libgtkada.a. You probably have some > problem either in the project file or else in the GtkAda installation. > > BTW. There is an advanced text editor in Gtk: > > http://projects.gnome.org/gtksourceview > > on top of the Gtk.Text_View, with an integrated language syntax > highlighting, undo buffer etc. > > -- > Regards, > Dmitry A. Kazakovhttp://www.dmitry-kazakov.de This program under development had been linking fine till I added the references to text_appearance and text_attributes. My assumption is -Lc:\gnat\2009\gtkada\lib in the command line pulls the gtkada library (I suspect there is a pragma in the GtkAda source somewhere to specify library). (I am including the gtkada.gpr). Anycase, I should look at the syntax coloring example. I think I have seen your Ada bindings. I will definitely take a look. Thanks, srini