This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Compile errors


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]