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: 103376,e55fdb8831ef53ac X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news3.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!newsfeed2.scan-plus.net!newsfeed.ision.net!newsfeed2.easynews.net!ision!newsfeed.arcor.de!news.arcor.de!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: problem getting gtkada to work 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: <448bd2b9$0$27299$626a54ce@news.free.fr> Date: Sun, 11 Jun 2006 10:28:08 +0200 Message-ID: <1x60cw0dvwsus$.1amu0ta99rqjl$.dlg@40tude.net> NNTP-Posting-Date: 11 Jun 2006 10:28:04 MEST NNTP-Posting-Host: 2ff05623.newsread4.arcor-online.net X-Trace: DXC=O6]4C1?QF6749B_U7Ob821:ejgIfPPld4jW\KbG]kaM8]kI_X=5Kea6_>gX29:I5`4[6LHn;2LCV>[ On Sun, 11 Jun 2006 10:22:20 +0200, Michel Simeon wrote: > I am learning Ada and would like to use gtkAda. > > I tried the exemple below, found in the web: > > with Gtk.Main, Gtk.Window; > procedure Simple is > W : Gtk.Window.Gtk_Window; > begin > Gtk.Main.Init; > Gtk.Window.Gtk_New(W); > Gtk.Window.Show(W); > Gtk.Main.Main; > end Simple; > > I am using Windows XP with GNAT 3.15p, AdaGIDE, and GtkAda 2.4.0 > > I put -IC:\GNAT\gtkada-2.4.0\include\gtkada as a compiler option in AdaGIDE > The program compiles, and then I get the following: > > gnatlink -g simple.ali >:\GNAT\gtkada-2.4.0\include\gtkada\\libgtkada.a(misc.o.b)(.text+0x327f:1: > undefined reference to `SetCursorPos@8' > gnatlink: cannot call C:\GNAT\bin\gcc.exe > gnatmake: *** link failed. > > I also tried to compile other exemples that come with the gtkada > distribution and got exactly the same problem. > > Could somebody help with some advise. Have you specified -mwindows for gnatmake? -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de