From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3838 invoked by alias); 6 Dec 2002 00:32:17 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 3817 invoked from network); 6 Dec 2002 00:32:17 -0000 Received: from unknown (HELO web21405.mail.yahoo.com) (216.136.232.75) by sources.redhat.com with SMTP; 6 Dec 2002 00:32:17 -0000 Message-ID: <20021206003131.91605.qmail@web21405.mail.yahoo.com> Received: from [203.97.2.243] by web21405.mail.yahoo.com via HTTP; Fri, 06 Dec 2002 11:31:31 EST Date: Thu, 05 Dec 2002 17:14:00 -0000 From: =?iso-8859-1?q?Danny=20Smith?= Subject: Re: Error: symbol `_D' is already defined To: cygwin@cygwin.com MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-SW-Source: 2002-12/txt/msg00324.txt.bz2 From: "Tim Beuman" To: "Cygwin at Cygwin dot Com" Date: Thu, 5 Dec 2002 15:39:30 -0800 Subject: Error: symbol `_D' is already defined -------------------------------------------------------------------------------- Hi, I am getting the following error when compiling a c++ source: /d/Temp/ccuwCNBi.s: Assembler messages: /d/Temp/ccuwCNBi.s:11: Error: symbol `_D' is already defined ==snip== extern "C" { __attribute__((dllimport)) Dtmethod_t* Dtset; __attribute__((dllimport)) Dtmethod_t* Dtbag; } add explicit extern to your declarations of extern variables, eg: extern __attribute__((dllimport)) Dtmethod_t* Dtset; This is fixed in CVS sources: __attribute__((dllimport)) implicitly adds extern. Danny http://www.yahoo.promo.com.au/hint/ - Yahoo! Hint Dropper - Avoid getting hideous gifts this Christmas with Yahoo! Hint Dropper! -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/