Closed Bug 359224 Opened 18 years ago Closed 18 years ago

Include nsTraceRefcnt.h in nsTArray.h

Categories

(Core :: XPCOM, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: malex, Assigned: malex)

Details

Attachments

(2 files)

Compiling in xpcom results in the following error on my system:

xpcomcomponents_s.lib(nsStaticComponentLoader.obj) : error LNK2005: "protected: __thiscall nsTArray_base::nsTArray_base(void)" (??0nsTArray_base@@IAE@XZ) alread
y defined in nsTArray.obj
   Creating library xpcom_core.lib and object xpcom_core.exp
xpcom_core.dll : fatal error LNK1169: one or more multiply defined symbols found
make[2]: *** [xpcom_core.dll] Error 145

This error is resolved by including nsTraceRefcnt.h in nsTArray.h.
Attached patch patchSplinter Review
Hmm...  I  guess the header does need the #define and the #define comes from nsTraceRefCnt.h....

I'm really not that happy including it here, but if there's no better way then we should, I guess.
Yeah, I don't see another way other than to move the define to another header.
Attachment #244464 - Flags: review?(darin.moz)
Attachment #244464 - Flags: superreview+
Attachment #244464 - Flags: review?(darin.moz)
Attachment #244464 - Flags: review+
Checked in for Alex.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
This should have gone in with the other patch, no?
Attachment #244516 - Flags: superreview?(bugmail)
Attachment #244516 - Flags: review?(bugmail)
Attachment #244516 - Flags: superreview?(bugmail)
Attachment #244516 - Flags: superreview+
Attachment #244516 - Flags: review?(bugmail)
Attachment #244516 - Flags: review+
Checked in the .cpp patch.
Assignee: nobody → malex
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: