Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Message-Id: <5.2.0.9.2.20030222084142.01dad510@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com Date: Sat, 22 Feb 2003 09:08:16 -0800 To: cygwin AT cygwin DOT com From: Randall R Schulz Subject: Re: gcc2 instead gcc In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Christian, Thorsten's delicate advice notwithstanding, if you installed the "historic" GCC 2.95.3 compiler contained in the "gcc2" package, you must use "gcc-2" to invoke it. Note that the package name has no hyphen, but the compiler name does. Makefiles usually use the variable CC to invoke the C compiler, so you can probably override make's or the make-file's built-in default to use gcc-2 by doing something like this: CC=gcc-2 make or export CC=gcc-2 make That might work for simple makefiles, but for more complicated software with an auto-configuration script (presumably this applies to PostgreSQL) you'll probably have to run "configure --help" to show you which options allow you to specify an alternate compiler. However, as Thorsten also hinted, there should be no need to use the older compiler, certainly not for well-written code. It seems pretty unlikely that PostgreSQL must be compiled with an old compiler. Randall Schulz At 01:13 2003-02-22, christian DOT schuster AT rsag DOT ch wrote: >Hi list, > >I am newbie and have a simple question. I want to compile PostgreSQL >with gcc2 instead of gcc. First I downloaded just the gcc2 compiler. >But the as I wanted to configure I had the error that no C compiler is >installed. So, I also downloaded gcc and then I could compile. > >How can I do that when I compile a program that it is done with gcc2? > >Which one is better of those two? > >Thanks for any help. > >Christian Schuster -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/