X-Recipient: archive-cygwin AT delorie DOT com X-Spam-Check-By: sourceware.org Message-ID: <4844593B.64D75940@dessent.net> Date: Mon, 02 Jun 2008 13:34:03 -0700 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: Nathan Thern CC: cygwin AT cygwin DOT com Subject: Re: cmake doesn't like gcc References: <48444570 DOT 357B1CB7 AT dessent DOT net> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Reply-To: cygwin AT cygwin DOT com Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: 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 Nathan Thern wrote: > I've been using gcc extensively to compile scheme interpreters and to > compile code generated by various scheme-to-C systems. Here's a simple > check, though: > --- > $ echo -e '#include \nmain(){printf("Hello World\\n");}' > > hw.c; cat hw.c; /usr/bin/gcc hw.c; ./a.exe > #include > main(){printf("Hello World\n");} > Hello World > --- Okay, so that pretty much rules out a gcc installation problem. One thing I noticed in your cygcheck is that you have LIB and INCLUDE set to their MS Visual Studio values. gcc itself does not use these environment variables but some build systems do and if cmake is one of those then that would explain why it cannot compile a trivial program. I think when Visual Studio installs it asks if you want the variables to be set globally or just when you run the "open build environment" shortcut, and I always choose the latter. I'm not sure if that's relevant here or not. Other than that I don't see anything out of the ordinary, but I don't know a great deal about cmake. You might want to see if the cmake package maintainer has anything to add, or perhaps ask on the cmake list. Brian -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/