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 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-05-16 12:45:19 PST Path: archiver1.sj.google.com!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Using Windows GNAT with Cygwin Date: 16 May 2001 15:41:18 -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 990043020 14294 128.183.220.71 (16 May 2001 19:57:00 GMT) X-Complaints-To: dscoggin@cne-odin.gsfc.nasa.gov NNTP-Posting-Date: 16 May 2001 19:57:00 GMT User-Agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.6 Xref: archiver1.sj.google.com comp.lang.ada:7584 Date: 2001-05-16T19:57:00+00:00 List-Id: Thore B. Karlsen writes: > On 15 May 2001 17:03:27 -0400, Stephen Leake > wrote: > > >> 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. > > Thanks. I added the GNAT bin dir to the Windows path, but I guess I need > to add it to the Cygwin path as well, before /bin. I was just hoping > there would be a more elegant solution. What would be more elegant? > >This use of the registry is totally inappropriate, as far as I can > >tell. It just gets in the way. > > Most use of the registry is totally inappropriate, in my opinion. I > never use it myself, and I wish the whole registry concept a quick > death. Well, I would not go that far. It is useful for install, update install, and uninstall information. It is also useful for global id stuff for DCom. I just think things that might need to be different in different processes should not be in the registry, or should at least be overridden by environment variables. Certainly two incompatible products should not use the same registry entry, which is what is happening here! -- -- Stephe