delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/04/24/09:02:15

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,SPF_PASS
X-Spam-Check-By: sourceware.org
Message-ID: <49F1BAD2.8050601@gmail.com>
Date: Fri, 24 Apr 2009 14:12:50 +0100
From: Dave Korn <dave DOT korn DOT cygwin AT googlemail DOT com>
User-Agent: Thunderbird 2.0.0.17 (Windows/20080914)
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: R: C++ program produces no output (g++ 4.3.2, cygwin 1.7)
References: <38415 DOT 45131 DOT qm AT web25001 DOT mail DOT ukl DOT yahoo DOT com> <gsrq9r$lck$1 AT ger DOT gmane DOT org>
In-Reply-To: <gsrq9r$lck$1@ger.gmane.org>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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

Eric Lilja wrote:
> Marco Atzeri wrote:
>>
>> try
>> LDFLAGS = -Wl,--enable-auto-import -o $(EXEC)
> 
> Yes, that did fix it, thank you very much. I should have tried it myself
> and I apologise for not doing so. The reason why I didn't, is that the
> other programs I tried earlier worked even if I ignored this warning and
> this is such a simple program. I thought I could avoid having to change
> all my Makefiles only have to change them back again when the next
> release of g++ comes, heh. Now I know better.

  There'll be a new release of binutils soon (or you could build your own from
CVS) that will enable auto-import by default, silencing all these warnings and
fixing any cases such as yours where it does actually matter.

    cheers,
      DaveK


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