delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/02/27/13:55:09

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Authentication-Warning: thing1-200.fsi.com: ford owned process doing -bs
Date: Fri, 27 Feb 2004 12:53:43 -0600 (CST)
From: Brian Ford <ford AT vss DOT fsi DOT com>
X-X-Sender: ford AT thing1-200
Reply-To: cygwin AT cygwin DOT com
To: DS <dmitryh AT ca DOT ibm DOT com>
cc: cygwin AT cygwin DOT com
Subject: Re: Problem of building Apache XalanC on cygwin
In-Reply-To: <c1o16s$8c4$1@sea.gmane.org>
Message-ID: <Pine.GSO.4.58.0402271247530.19531@thing1-200>
References: <c1o16s$8c4$1 AT sea DOT gmane DOT org>
MIME-Version: 1.0
X-IsSubscribed: yes

It would have been extreamely helpful for you to have shown what that
expanded to on the compile line as well as the errors reported for the
non-working case, but I'll take a WAG anyway.

On Fri, 27 Feb 2004, DS wrote:

> Hi all!
> I'm trying to build Apache XalanC .
> I use cygwin 1.5.7 , gcc 3.3.1 and make 3.8
>
> In our makefiles ( we are multi-platform C++ application ) we use nest
> structure:
>
> $(TARGET): $(OBJECTS)
> 	$(MAKE_SHARED) $(LINK_PARAMETERS) $^ -o $@
>
> (note , that link parameters are before "-o $@" section)
>
Or, more likely, note that "link parameters" are not after the objects
($^) you are linking.  If "link parameters" include libraries, this is
incorrect.

Library references are only used to resolve undefined symbols.  Before
there are objects, there are no undefined symbols.

> if I change it to:
>
> $(TARGET): $(OBJECTS)
> 	$(MAKE_SHARED)  $^ -o $@ $(LINK_PARAMETERS)
>
> it's working .
>
> Any ideas how can build with the first model ? XalanC is multi-paltform
> application and I can't chnage the makefiles so easyly.
>
If my suspicions are correct, it shouldn't work correctly on any platform
that way.  That's just wrong.

BTW, this is not Cygwin specific, so it is officially off topic for this
list.

HTH.

-- 
Brian Ford
Senior Realtime Software Engineer
VITAL - Visual Simulation Systems
FlightSafety International
Phone: 314-551-8460
Fax:   314-551-8444

--
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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019