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=unavailable autolearn_force=no version=3.4.4 Path: border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!feeder.erje.net!eu.feeder.erje.net!lightspeed.eweka.nl!lightspeed.eweka.nl!cyclone03.ams2.highwinds-media.com!news.highwinds-media.com!voer-me.highwinds-media.com!post01.fr7!fx10.fr7.POSTED!not-for-mail From: Brian Drummond Subject: Re: Test method 1. simple hello world graphical window. Newsgroups: comp.lang.ada References: User-Agent: Pan/0.139 (Sexual Chocolate; GIT bf56508 git://git.gnome.org/pan2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Message-ID: NNTP-Posting-Host: 62.49.20.82 X-Complaints-To: abuse@demon.net X-Trace: 1413365944 62.49.20.82 (Wed, 15 Oct 2014 09:39:04 UTC) NNTP-Posting-Date: Wed, 15 Oct 2014 09:39:04 UTC Date: Wed, 15 Oct 2014 09:39:04 GMT X-Received-Body-CRC: 2226713552 X-Received-Bytes: 2159 X-Original-Bytes: 1952 Xref: number.nntp.giganews.com comp.lang.ada:189804 Date: 2014-10-15T09:39:04+00:00 List-Id: On Tue, 14 Oct 2014 15:10:25 +0000, Phil wrote: > Test method 1. On the Rosetta code website, I used the simple hello > world graphical window. > > Does not compile! > Screenshot of the error messages are linked in a PDF file on this link: > https://dl.dropboxusercontent.com/u/479487/ > compile_rosetta_ADA_simple_window.pdf Not sure about this one from within gps, but compiling from the command line you usually need to run gtkada-config to set up paths so that [gnatmake|gprbuild] can find the GTKAda files on your installation. For example : gnatmake your_main_program.adb $(gtkada-config) or gnatmake -P your_project.gpr $(gtkada-config) In my installation at the time I took these notes, running gtkada-config at the command line gave: gtkada-config -aI/usr/share/ada/adainclude/gtkada -aO/usr/lib/x86_64-linux-gnu/ada/ adalib/gtkada -largs -L/usr/lib/x86_64-linux-gnu -lgtkada -L/usr/lib/ x86_64-linux-gnu -lgtk-x11-2.0 -lgdk-x11-2.0 -latk-1.0 -lgio-2.0 - lpangoft2-1.0 -lpangocairo-1.0 -lgdk_pixbuf-2.0 -lcairo -lpango-1.0 - lfreetype -lfontconfig -lgobject-2.0 -lglib-2.0 which should let the build find the sources in the right place. Don't know how to set up gps the same way, but maybe somebody does... - Brian