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,cb67207e18d49fe4 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news4.google.com!out03b.usenetserver.com!news.usenetserver.com!in01.usenetserver.com!news.usenetserver.com!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsfeed01.chello.at!newsfeed02.chello.at!news.hispeed.ch.POSTED!not-for-mail Message-ID: <1895579.bpKyA3z36u@linux1.krischik.com> From: Martin Krischik Subject: Re: win32.ads not found error Newsgroups: comp.lang.ada Date: Thu, 25 Oct 2007 20:29:38 +0200 References: <1284531.ivraFQ7FWU@linux1.krischik.com> <1193157755.636101.250900@i38g2000prf.googlegroups.com> User-Agent: KNode/0.10.4 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Complaints-To: abuse@hispeed.ch Organization: hispeed.ch NNTP-Posting-Host: 84.75.167.107 (84.75.167.107) NNTP-Posting-Date: Thu, 25 Oct 2007 21:00:03 +0200 X-Trace: f01cd4720e7b3f1ee02ce15427 Xref: g2news2.google.com comp.lang.ada:2569 Date: 2007-10-25T20:29:38+02:00 List-Id: Anh Vo wrote: > On Oct 22, 11:14 am, "LK" wrote: >> Thanks for your answer. I had installed the package before I began with >> the example. >> >> > > ... file "win32.ads" not found >> >> > > What way shall the compiler /GNAT + GPS GPL Edition/ be set up so >> > > references to additional units are resolved? >> >> > The win32 package - which even comes with a nice installer. > > Just set the variables ADA_INCLUDE_PATH and ADA_OBJECTS_PATH as shown > below where Install_Dir is the installed directory, normally GNAT, and > C is the hard drive. > > set ADA_INCLUDE_PATH=C:\Install_Dir\include\win32ada;%ADA_INCLUDE_PATH > % > > set ADA_OBJECTS_PATH=C:\Install_Dir\lib\win32ada;%ADA_OBJECTS_PATH% > > If a project is used, just import the win32ada.gpr to your project. It > is normally located at C:\Install_Dir\lib\gnat directory. Good luck. Well, that is the old fashioned way. The new way is to set ADA_PROJECT_FILE to C:\Install_Dir\lib and then with "win32ada.gpr"; in you project file. Martin -- mailto://krischik@users.sourceforge.net Ada programming at: http://ada.krischik.com