| www.delorie.com/archives/browse.cgi | search |
| 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 |
| From: | "Tim Beuman" <timb AT cdvinc DOT com> |
| To: | "Cygwin AT Cygwin. Com" <cygwin AT cygwin DOT com> |
| Subject: | Error: symbol `_D' is already defined |
| Date: | Thu, 5 Dec 2002 15:39:30 -0800 |
| Message-ID: | <GFEAKACMDNLNLPNMIFFLMEAPDDAA.timb@cdvinc.com> |
| MIME-Version: | 1.0 |
| X-Priority: | 3 (Normal) |
| X-MSMail-Priority: | Normal |
| Importance: | Normal |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2800.1106 |
| X-Authenticated-Sender: | timb AT cdvinc DOT com |
| X-Return-Path: | timb AT cdvinc DOT com |
| X-MDaemon-Deliver-To: | cygwin AT cygwin DOT com |
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
The relevant portion of code is (preprocessor output):
#define Void_t void
typedef struct _dtmethod_s Dtmethod_t;
typedef Void_t* (*Dtsearch_f)_ARG_((Dt_t*,Void_t*,int));
/* method to manipulate dictionary structure */
struct _dtmethod_s
{ Dtsearch_f searchf; /* search function */
int type; /* type of operation */
};
extern "C" {
__attribute__((dllimport)) Dtmethod_t* Dtset;
__attribute__((dllimport)) Dtmethod_t* Dtbag;
}
compiler invocation (using libtool):
c++ -DHAVE_CONFIG_H -I. -O2 -Wall -Wno-unknown-pragmas -Wp,-MD,.deps/$1.pp -
c $1.cpp \
-DDLL_EXPORT -o .libs/$1.o -E
Removing _DDLL_EXPORT doesn't make a difference.
I know someone else has reported this problem also but there were no
follow-ups:
http://www.geocrawler.com/archives/3/6013/2002/8/0/9468006/
Might be a compiler backend problem. I don't know.
The compiler version should be 3.2.3 (I downloaded and installed this
version today again, although gcc --version reports:
gcc (GCC) 3.2 20020927 (prerelease)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
The date of gcc.exe is 11/14/2002.
Tim Beuman
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |