This is the mail archive of the
mailing list for the Cygwin project.
Re: Compile errors
- From: Brian Dessent <brian at dessent dot net>
- To: cygwin at cygwin dot com
- Date: Wed, 13 Jun 2007 05:05:37 -0700
- Subject: Re: Compile errors
- References: <20070613114345.GB36922@bull.net>
- Reply-to: 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
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.
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html