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-Thread: 103376,cb67207e18d49fe4 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!k35g2000prh.googlegroups.com!not-for-mail From: Anh Vo Newsgroups: comp.lang.ada Subject: Re: win32.ads not found error Date: Fri, 26 Oct 2007 17:08:35 -0000 Organization: http://groups.google.com Message-ID: <1193418515.792452.185630@k35g2000prh.googlegroups.com> References: <1284531.ivraFQ7FWU@linux1.krischik.com> <1193157755.636101.250900@i38g2000prf.googlegroups.com> <1895579.bpKyA3z36u@linux1.krischik.com> NNTP-Posting-Host: 209.225.224.254 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1193418516 1473 127.0.0.1 (26 Oct 2007 17:08:36 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 26 Oct 2007 17:08:36 +0000 (UTC) In-Reply-To: <1895579.bpKyA3z36u@linux1.krischik.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0; .NET CLR 1.1.4322; InfoPath.1),gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: k35g2000prh.googlegroups.com; posting-host=209.225.224.254; posting-account=ps2QrAMAAAA6_jCuRt2JEIpn5Otqf_w0 Xref: g2news2.google.com comp.lang.ada:2588 Date: 2007-10-26T17:08:35+00:00 List-Id: On Oct 25, 11:29 am, Martin Krischik wrote: > 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. > This way is even cooler. I just forgot about it. Thanks for pointing it out. AV