X-Spam-Check-By: sourceware.org Message-ID: <466FDD91.A1ADD91D@dessent.net> Date: Wed, 13 Jun 2007 05:05:37 -0700 From: Brian Dessent X-Mailer: Mozilla 4.79 [en] (Windows NT 5.0; U) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Compile errors References: <20070613114345 DOT GB36922 AT bull 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 Yves-Alain Nicollet wrote: > gcc xplore.o -o xplore > xplore.o: In function `Wait': > /cygdrive/d/XHOME/port/xplore/xplore-1.2a/xplore.c:32: undefined reference to `_app_shell' I'm not going to pour over a huge Makefile (that's your job) but the above is a classic example of what happens when a Makefile fails to use $(EXEEXT). You can spot these easily because make does the best it can without a matching rule and ends up invoking a built-in rule instead of the one in the Makefile that includes all the necessary flags and libraries. To fix it find all the rules and targets that refer to executables and make sure they use $(EXEEXT) instead of assuming executables have no extension. This is a very common porting problem since obviously EXEEXT is nothing/unset on linux/POSIX. 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/