This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
RE: Error: symbol `_D' is already defined
- From: "Tim Beuman" <timb at cdvinc dot com>
- To: "Cygwin at Cygwin dot Com" <cygwin at cygwin dot com>
- Date: Fri, 6 Dec 2002 10:02:42 -0800
- Subject: RE: Error: symbol `_D' is already defined
Thanks. Works.
Tim
-----Original Message-----
From: Danny Smith [mailto:danny_r_smith_2001@yahoo.co.nz]
Sent: Thursday, December 05, 2002 04:32 PM
To: cygwin@cygwin.com
Subject: Re: Error: symbol `_D' is already defined
From: "Tim Beuman" <timb at cdvinc dot com>
To: "Cygwin at Cygwin dot Com" <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/