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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,558a028f17b42a36 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!proxad.net!feeder1-2.proxad.net!194.25.134.126.MISMATCH!newsfeed01.sul.t-online.de!t-online.de!newsfeed.velia.net!noris.net!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Bug in GtkAda Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <03e9d0e2-bff2-4450-aa62-6f345cef403b@z2g2000yqm.googlegroups.com> Date: Fri, 16 Oct 2009 09:33:04 +0200 Message-ID: <1hvo3adu70mnu.b4e7ql4yhlp8$.dlg@40tude.net> NNTP-Posting-Date: 16 Oct 2009 09:33:03 CEST NNTP-Posting-Host: 6dffa78b.newsspool4.arcor-online.net X-Trace: DXC=kIiZ>Ob`NJbj5k5aEF7ISm4IUKoXSWE^8bFd7d X-Complaints-To: usenet-abuse@arcor.de Xref: g2news2.google.com comp.lang.ada:8708 Date: 2009-10-16T09:33:03+02:00 List-Id: On Thu, 15 Oct 2009 18:22:49 -0700 (PDT), RasikaSrinivasan@gmail.com wrote: > I have a piece of code that reads : > -------------------- > Gtk.Text_Attributes.Gtk_New(Special_Atr); > Gdk.Color.Set_Rgb( Fg , 16#Ffff# , 0 , 0 ) ; > 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. Kazakov http://www.dmitry-kazakov.de