Return-Path: Delivered-To: apmail-incubator-stdcxx-user-archive@www.apache.org Received: (qmail 60727 invoked from network); 4 Jan 2007 11:15:54 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Jan 2007 11:15:54 -0000 Received: (qmail 34834 invoked by uid 500); 4 Jan 2007 11:16:00 -0000 Delivered-To: apmail-incubator-stdcxx-user-archive@incubator.apache.org Received: (qmail 34823 invoked by uid 500); 4 Jan 2007 11:16:00 -0000 Mailing-List: contact stdcxx-user-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: stdcxx-user@incubator.apache.org Delivered-To: mailing list stdcxx-user@incubator.apache.org Received: (qmail 34812 invoked by uid 99); 4 Jan 2007 11:16:00 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jan 2007 03:16:00 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [194.250.47.2] (HELO ils.fr) (194.250.47.2) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 04 Jan 2007 03:15:48 -0800 X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) X-Spam-Level: X-Spam-Report: * 0.1 HTML_50_60 BODY: Message is 50% to 60% HTML * -4.0 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 0.0 HTML_MESSAGE BODY: HTML included in message X-MDDK-Result: neutral (ils.fr) X-MDSPF-Result: none (ils.fr) Received-SPF: none (ils.fr: nadine.faizant@nautitia.fr does not designate permitted sender hosts) x-spf-client=MDaemon.PRO.v9.0.5 receiver=ils.fr client-ip=193.252.45.58 envelope-from= helo=jacquard Received: from jacquard (lneuilly-152-23-30-58.w193-252.abo.wanadoo.fr [193.252.45.58]) by ils.fr (ils.fr) (MDaemon PRO v9.0.5) with ESMTP id md50002696084.msg for ; Thu, 04 Jan 2007 12:15:23 +0100 Message-ID: <04c601c72ff1$a2b6eef0$c001a8c0@jacquard> From: "Nadine Faizant" To: References: <034e01c72f28$5530d750$c001a8c0@jacquard> <459BDEF3.3000009@roguewave.com> <03e201c72f58$4c1c5060$c001a8c0@jacquard> <459BE9DA.3080600@roguewave.com> <459BF30C.7000609@roguewave.com> Subject: Re: error LNK2005 : VC8 Date: Thu, 4 Jan 2007 12:15:25 +0100 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_04C3_01C72FFA.03CD3CA0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.3028 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.3028 X-Lookup-Warning: MAIL lookup on nadine.faizant@nautitia.fr does not match 193.252.45.58 X-MDRemoteIP: 193.252.45.58 X-Return-Path: nadine.faizant@nautitia.fr X-Envelope-From: nadine.faizant@nautitia.fr X-MDaemon-Deliver-To: stdcxx-user@incubator.apache.org X-Spam-Processed: ils.fr, Thu, 04 Jan 2007 12:15:23 +0100 X-MDAV-Processed: ils.fr, Thu, 04 Jan 2007 12:15:24 +0100 X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-3.9 required=3.0 tests=BAYES_00,HTML_50_60, HTML_MESSAGE autolearn=ham version=3.1.3 ------=_NextPart_000_04C3_01C72FFA.03CD3CA0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Thanks, Martin. I have search for deque instanciation... there is no deque in source = file and include for homoSyntagmaticConstraints.cpp. I tried dumpbin as you suggest. I find in graph library the source file that use deque objet. I have used dumpbin on this obj file and I find this... which is suspect = for me (there is seceral deque export !), two examples : /EXPORT:??_F?$deque@IV?$allocator@I@std@@@std@@QAEXXZ = /EXPORT:??0?$deque@IV?$allocator@I@std@@@std@@QAE@ABV?$allocator@I@1@@Z This file should not export this object, isn't it ? In homoSyntagmaticConstraints.obj there is no /EXPORT symbols... Could you say me please if I'm wrong. I need to export class A from = graph lib in order to be use in other dll. So, in graph lib I have a Class A which inherits of deque that I have = declare as Class DLLExportGraph : public B, public std::deque where DLLExportGraph is defined as=20 #ifdef GRAPH_EXPORTS #define DLLExportGraph _declspec (dllexport) #else #define DLLExportGraph _declspec (dllimport) #endif I know this is the correct syntax for non template class, perhaps there = is something different for template classes ? Thanks for your help, Nadine PS : output file are so big (either compressed !) if you really need = them I will send you ----- Original Message -----=20 From: "Martin Sebor" To: Sent: Wednesday, January 03, 2007 7:16 PM Subject: Re: error LNK2005 : VC8 > Martin Sebor wrote: >> Nadine Faizant wrote: >>> >>> No is is a debug dynamic link (that the reason why I need a .lib=20 >>> file...) >>=20 >> So Graph.lib is an archive library that uses/links with stdcxx, >> correct? Does Graph.lib link against the stdcxx DLL or archive? >> (The latter could be a likely cause of the problem.) >=20 > Okay, Graph is a DLL that uses the same stdcxx DLL as the DLL that > gives the errors (SyntacticAnalysis.dll). >=20 > Since the error is issued for a couple of third party libraries > (i.e., not stdcxx) I suspect it's a usage problem as opposed to > one with stdcxx itself. Does either of the object files mentioned > in the error message by any chance explicitly instantiate deque? >=20 > I think you'll need to some some digging into the object files > (using dumpbin) to figure how the conflicting symbols are > defined (they're all inline functions so it's puzzling that they > should cause conflicts; we don't normally do 15d builds during > our testing so you might want to try a 12d build instead -- that > should optimize away inline functions). I would look for other > inline member functions of class templates to see whether there > is any difference. I'm in the process of moving my office so I > won't be able to look into this in more detail until I'm done. >=20 > Martin >=20 > ------=_NextPart_000_04C3_01C72FFA.03CD3CA0--