delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/03/19/08:49:20

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: sourceware.org
To: cygwin AT cygwin DOT com
From: Eric Lilja <mindcooler AT gmail DOT com>
Subject: Re: Message during linking
Date: Thu, 19 Mar 2009 14:48:53 +0100
Lines: 30
Message-ID: <gptig6$bt1$1@ger.gmane.org>
References: <gpthdl$7o4$1 AT ger DOT gmane DOT org> <OF3658CECB DOT 4A036109-ONC125757E DOT 004AF4D1-C125757E DOT 004B1B64 AT onevision DOT de>
Mime-Version: 1.0
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
In-Reply-To: <OF3658CECB.4A036109-ONC125757E.004AF4D1-C125757E.004B1B64@onevision.de>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

Kai Tietz wrote:
> Hello Eric,

Hello Kai and thanks for your swift reply!

> 
>> Here's the very simple Makefile that was used:
>> CXX = g++
>> CXXFLAGS = -Wall -Wextra -std=c++98 -pedantic -Werror -c
>> LDFLAGS = -s -o $(EXEC)
> 
> Add to your LDFLAGS --enable-auto-import

--enable-auto-import did nothing, however, -enable-auto-import did 
silence the warning during linking (notice only one leading dash).

> 
> That should remove those warnings for you.

Ok, so I need to alter all my Makefiles for c++ programs and this will 
remain this way (i.e., this option will always have to specified for the 
linking phase from now on)?

> 
> Cheers,
> Kai
> 
> 

- EL


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