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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,10baa30e2bfad6c5,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-15 14:05:26 PST Path: archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!feed.textport.net!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Using Windows GNAT with Cygwin Date: 15 May 2001 17:03:27 -0400 Organization: NASA Goddard Space Flight Center Message-ID: References: <2m53gtkmvaou7ktac1jfmfmb32iuiernkm@4ax.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 989961548 25154 128.183.220.71 (15 May 2001 21:19:08 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 15 May 2001 21:19:08 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 Xref: archiver1.sj.google.com comp.lang.ada:7542 Date: 2001-05-15T21:19:08+00:00 List-Id: Thore B. Karlsen writes: > I've been looking around for FAQs on this, but to no avail. > > I have Cygwin installed, but I installed the Windows port of GNAT > because I want to create standalone executables that don't need the > Cygwin library. The problem is, of course, that GNAT and Cygwin have > their own sets of compilers. So how would I go about getting gnatmake to > use its own gcc and other tools, and not Cygwin's tools? Set PATH appropriately. There is also one registry setting that Cygwin and GNAT fight over; HKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation The simplest way to manage this is to use the Registry Editor to export this key (to a .reg file) after installing Cygwin, and again after installing GNAT. Then run the appropriate .reg file when you need to run the compiler. This use of the registry is totally inappropriate, as far as I can tell. It just gets in the way. You can set PATH and run the .reg file from a batch script; that simplifies things a bit. -- -- Stephe