Return-Path: Delivered-To: apmail-activemq-dev-archive@www.apache.org Received: (qmail 13088 invoked from network); 21 Jan 2011 15:46:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 21 Jan 2011 15:46:03 -0000 Received: (qmail 53741 invoked by uid 500); 21 Jan 2011 15:46:03 -0000 Delivered-To: apmail-activemq-dev-archive@activemq.apache.org Received: (qmail 53510 invoked by uid 500); 21 Jan 2011 15:46:00 -0000 Mailing-List: contact dev-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@activemq.apache.org Delivered-To: mailing list dev@activemq.apache.org Received: (qmail 53502 invoked by uid 99); 21 Jan 2011 15:45:59 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 15:45:59 +0000 X-ASF-Spam-Status: No, hits=1.5 required=10.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of tabish121@gmail.com designates 209.85.212.43 as permitted sender) Received: from [209.85.212.43] (HELO mail-vw0-f43.google.com) (209.85.212.43) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 21 Jan 2011 15:45:51 +0000 Received: by vws17 with SMTP id 17so755258vws.2 for ; Fri, 21 Jan 2011 07:45:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:subject:from:to:in-reply-to:references :content-type:date:message-id:mime-version:x-mailer :content-transfer-encoding; bh=Qfg42aot90pTnrezrBVyMOB/iITIwRTQ+2pMMhuZFVo=; b=FZ2gyVRF7MygTNy/jN/CMaIn85bhtCtSDew49FpW32eTP0+y6tD2/oFVbSMteiyOAN dXqPTQDOEMfKH3g3rmt0Hy4ttSHMfd12QCZwK4swt7d8qvLNvYg7yFWZwfjc7jex36VR ETBsrqJLHN3CGjEkK66o/E9ZYn9o0VAHOdPuA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:in-reply-to:references:content-type:date:message-id :mime-version:x-mailer:content-transfer-encoding; b=NSXr/cYeqR7AvsT22OJaSMQgXO8POY2n4iBKD0Nmwspj8QX4b7hMSbW+ChPMzWGyBE Vu8K+6vgnMZ8R8BywSUukoF+rE3+r6rYSRSOJZrG8Q77EEqgyKXCwyqkMLYjKIlH9+gO NipWhJ78hRagZd01INHxD+/xPaQT7dZM8l1mk= Received: by 10.220.191.131 with SMTP id dm3mr218381vcb.6.1295624730765; Fri, 21 Jan 2011 07:45:30 -0800 (PST) Received: from [192.168.2.150] (c-69-143-50-138.hsd1.va.comcast.net [69.143.50.138]) by mx.google.com with ESMTPS id u14sm3225114vcr.1.2011.01.21.07.45.29 (version=SSLv3 cipher=RC4-MD5); Fri, 21 Jan 2011 07:45:30 -0800 (PST) Subject: Re: Building ActiveMQCpp 3.2.4 on Windows 7 x64 From: Timothy Bish To: dev@activemq.apache.org In-Reply-To: <4D39A81A.5020807@ovgu.de> References: <1295619504380-3229732.post@n4.nabble.com> <1295619909.2750.1.camel@office> <4D399AA7.1070806@ovgu.de> <1295621285.2750.3.camel@office> <4D39A328.6030007@ovgu.de> <1295623230.2750.6.camel@office> <4D39A81A.5020807@ovgu.de> Content-Type: text/plain; charset="UTF-8" Date: Fri, 21 Jan 2011 10:45:28 -0500 Message-ID: <1295624728.2750.7.camel@office> Mime-Version: 1.0 X-Mailer: Evolution 2.32.1 (2.32.1-1.fc14) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Fri, 2011-01-21 at 07:36 -0800, andreas.meinecke wrote: > Am 21.01.2011 16:21, schrieb Timothy Bish [via ActiveMQ]: > > On Fri, 2011-01-21 at 07:15 -0800, andreas.meinecke wrote: > > > > > Am 21.01.2011 15:48, schrieb Timothy Bish [via ActiveMQ]: > > > > On Fri, 2011-01-21 at 06:40 -0800, andreas.meinecke wrote: > > > > > > > > > Am 21.01.2011 15:25, schrieb Timothy Bish [via ActiveMQ]: > > > > > > On Fri, 2011-01-21 at 06:18 -0800, andreas.meinecke wrote: > > > > > > > > > > > > > Hey all, > > > > > > > > > > > > > > i am trying to build the ActiveMQCpp libraries for windows > > x64 with > > > > > > vs2008. > > > > > > > > > > > > > > When i build it in debug mode x64, everything went fine > > until i try > > > > > > to link > > > > > > > the libactivemq-cppd.lib from an other project. Here i get > > about > > > > 600 > > > > > > > unresolved external symbol errors in libactivemq-cppd.lib. > > > > > > > > > > > > > > So i tried to build the DebugDLL configuration, but here i get > > > > about > > > > > > 1500 > > > > > > > unresolved external symbol errors during linking. > > > > > > > > > > > > > > Any hints? > > > > > > > > > > > > > > best regards, > > > > > > > Andreas > > > > > > > > > > > > Best thing to do is look at the settings in the example > > project to > > > > see > > > > > > how that is configured, you need to be linking in the apr and > > > > apr-util > > > > > > libs plus openssl if you enabled SSL. > > > > > > > > > > > > Regards > > > > > Hello Tim, > > > > > > > > > > many thanks for your very fast answer. I have compiled apr and > > apr-util > > > > > as well for windows x64 and yes, both libs are linked into the > > project. > > > > > But this is not solving my unresolved external symbol errors. > > > > > > > > > > Any other ideas? > > > > > > > > > > > > > What are some of the symbols that aren't being resolved? > > > > > > > > Have you examined the project settings for the examples provided > > by in > > > > the CMS package? > > > Here are some errors trying to link libativemq-cppd.lib into my > > project : > > > 1>libactivemq-cppd.lib(Network.obj) : error LNK2019: unresolved > > external > > > symbol "public: virtual __cdecl > > > > > decaf::internal::util::ResourceLifecycleManager::~ResourceLifecycleManager(void)" > > > > > (??1ResourceLifecycleManager@util@internal@decaf@@UEAA@XZ) > > referenced in > > > function "int `public: __cdecl > > > decaf::internal::net::NetworkData::NetworkData(void)'::`1'::dtor$0" > > > (?dtor$0@?0???0NetworkData@net@internal@decaf@@QEAA@XZ@4HA) > > > 1>libactivemq-cppd.lib(Network.obj) : error LNK2019: unresolved > > external > > > symbol "public: __cdecl > > > > > decaf::internal::util::ResourceLifecycleManager::ResourceLifecycleManager(void)" > > > > > (??0ResourceLifecycleManager@util@internal@decaf@@QEAA@XZ) > > referenced in > > > function "public: __cdecl > > > decaf::internal::net::NetworkData::NetworkData(void)" > > > (??0NetworkData@net@internal@decaf@@QEAA@XZ) > > > 1>libactivemq-cppd.lib(ActiveMQMapMessage.obj) : error LNK2019: > > > unresolved external symbol "public: virtual void __cdecl > > > activemq::commands::Message::afterUnmarshal(class > > > activemq::wireformat::WireFormat *)" > > > > > (?afterUnmarshal@Message@commands@activemq@@UEAAXPEAVWireFormat@wireformat@3@@Z) > > > > > referenced in function "int `public: virtual float __cdecl > > > activemq::commands::ActiveMQMapMessage::getFloat(class > > > std::basic_string,class > > > std::allocator > const &)const '::`1'::catch$12" > > > > > (?catch$12@?0??getFloat@ActiveMQMapMessage@commands@activemq@@UEBAMAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z@4HA) > > > 1>libactivemq-cppd.lib(ActiveMQBlobMessage.obj) : error LNK2001: > > > unresolved external symbol "public: virtual void __cdecl > > > activemq::commands::Message::afterUnmarshal(class > > > activemq::wireformat::WireFormat *)" > > > > > (?afterUnmarshal@Message@commands@activemq@@UEAAXPEAVWireFormat@wireformat@3@@Z) > > > 1>libactivemq-cppd.lib(ActiveMQObjectMessage.obj) : error LNK2001: > > > unresolved external symbol "public: virtual void __cdecl > > > activemq::commands::Message::afterUnmarshal(class > > > activemq::wireformat::WireFormat *)" > > > > > (?afterUnmarshal@Message@commands@activemq@@UEAAXPEAVWireFormat@wireformat@3@@Z) > > > 1>libactivemq-cppd.lib(ActiveMQTextMessage.obj) : error LNK2001: > > > unresolved external symbol "public: virtual void __cdecl > > > activemq::commands::Message::afterUnmarshal(class > > > activemq::wireformat::WireFormat *)" > > > > > (?afterUnmarshal@Message@commands@activemq@@UEAAXPEAVWireFormat@wireformat@3@@Z) > > > 1>libactivemq-cppd.lib(ActiveMQBytesMessage.obj) : error LNK2001: > > > unresolved external symbol "public: virtual void __cdecl > > > activemq::commands::Message::afterUnmarshal(class > > > activemq::wireformat::WireFormat *)" > > > > > (?afterUnmarshal@Message@commands@activemq@@UEAAXPEAVWireFormat@wireformat@3@@Z) > > > 1>libactivemq-cppd.lib(ActiveMQMessage.obj) : error LNK2001: unresolved > > > external symbol "public: virtual void __cdecl > > > activemq::commands::Message::afterUnmarshal(class > > > activemq::wireformat::WireFormat *)" > > > > > (?afterUnmarshal@Message@commands@activemq@@UEAAXPEAVWireFormat@wireformat@3@@Z) > > > 1>libactivemq-cppd.lib(ActiveMQStreamMessage.obj) : error LNK2001: > > > unresolved external symbol "public: virtual void __cdecl > > > activemq::commands::Message::afterUnmarshal(class > > > activemq::wireformat::WireFormat *)" > > > > > (?afterUnmarshal@Message@commands@activemq@@UEAAXPEAVWireFormat@wireformat@3@@Z) > > > 1>libactivemq-cppd.lib(ActiveMQMapMessage.obj) : error LNK2019: > > > unresolved external symbol "public: virtual class > > > decaf::lang::Pointer > > decaf::util::concurrent::atomic::AtomicRefCounter> __cdecl > > > activemq::commands::Message::visit(class > > activemq::state::CommandVisitor > > > *)" > > > > > (?visit@Message@commands@activemq@@UEAA?AV?$Pointer@VCommand@commands@activemq@@VAtomicRefCounter@atomic@concurrent@util@decaf@@@lang@decaf@@PEAVCommandVisitor@state@3@@Z) > > > > > referenced in function "int `public: virtual float __cdecl > > > activemq::commands::ActiveMQMapMessage::getFloat(class > > > std::basic_string,class > > > std::allocator > const &)const '::`1'::catch$13" > > > > > (?catch$13@?0??getFloat@ActiveMQMapMessage@commands@activemq@@UEBAMAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z@4HA) > > > 1>libactivemq-cppd.lib(ActiveMQBlobMessage.obj) : error LNK2001: > > > unresolved external symbol "public: virtual class > > > decaf::lang::Pointer > > decaf::util::concurrent::atomic::AtomicRefCounter> __cdecl > > > activemq::commands::Message::visit(class > > activemq::state::CommandVisitor > > > *)" > > > > > (?visit@Message@commands@activemq@@UEAA?AV?$Pointer@VCommand@commands@activemq@@VAtomicRefCounter@atomic@concurrent@util@decaf@@@lang@decaf@@PEAVCommandVisitor@state@3@@Z) > > > 1>libactivemq-cppd.lib(ActiveMQObjectMessage.obj) : error LNK2001: > > > unresolved external symbol "public: virtual class > > > decaf::lang::Pointer > > decaf::util::concurrent::atomic::AtomicRefCounter> __cdecl > > > activemq::commands::Message::visit(class > > activemq::state::CommandVisitor > > > *)" > > > > > (?visit@Message@commands@activemq@@UEAA?AV?$Pointer@VCommand@commands@activemq@@VAtomicRefCounter@atomic@concurrent@util@decaf@@@lang@decaf@@PEAVCommandVisitor@state@3@@Z) > > > 1>libactivemq-cppd.lib(ActiveMQTextMessage.obj) : error LNK2001: > > > unresolved external symbol "public: virtual class > > > decaf::lang::Pointer > > decaf::util::concurrent::atomic::AtomicRefCounter> __cdecl > > > activemq::commands::Message::visit(class > > activemq::state::CommandVisitor > > > *)" > > > > > (?visit@Message@commands@activemq@@UEAA?AV?$Pointer@VCommand@commands@activemq@@VAtomicRefCounter@atomic@concurrent@util@decaf@@@lang@decaf@@PEAVCommandVisitor@state@3@@Z) > > > 1>libactivemq-cppd.lib(ActiveMQBytesMessage.obj) : error LNK2001: > > > unresolved external symbol "public: virtual class > > > decaf::lang::Pointer > > decaf::util::concurrent::atomic::AtomicRefCounter> __cdecl > > > activemq::commands::Message::visit(class > > activemq::state::CommandVisitor > > > *)" > > > > > (?visit@Message@commands@activemq@@UEAA?AV?$Pointer@VCommand@commands@activemq@@VAtomicRefCounter@atomic@concurrent@util@decaf@@@lang@decaf@@PEAVCommandVisitor@state@3@@Z) > > > 1>libactivemq-cppd.lib(ActiveMQMessage.obj) : error LNK2001: unresolved > > > external symbol "public: virtual class decaf::lang::Pointer > > activemq::commands::Command,class > > > decaf::util::concurrent::atomic::AtomicRefCounter> __cdecl > > > activemq::commands::Message::visit(class > > activemq::state::CommandVisitor > > > *)" > > > > > (?visit@Message@commands@activemq@@UEAA?AV?$Pointer@VCommand@commands@activemq@@VAtomicRefCounter@atomic@concurrent@util@decaf@@@lang@decaf@@PEAVCommandVisitor@state@3@@Z) > > > 1>libactivemq-cppd.lib(ActiveMQStreamMessage.obj) : error LNK2001: > > > unresolved external symbol "public: virtual class > > > decaf::lang::Pointer > > decaf::util::concurrent::atomic::AtomicRefCounter> __cdecl > > > activemq::commands::Message::visit(class > > activemq::state::CommandVisitor > > > *)" > > > > > (?visit@Message@commands@activemq@@UEAA?AV?$Pointer@VCommand@commands@activemq@@VAtomicRefCounter@atomic@concurrent@util@decaf@@@lang@decaf@@PEAVCommandVisitor@state@3@@Z) > > > 1>libactivemq-cppd.lib(ActiveMQMapMessage.obj) : error LNK2019: > > > unresolved external symbol "public: virtual bool __cdecl > > > activemq::commands::Message::isExpired(void)const " > > > (?isExpired@Message@commands@activemq@@UEBA_NXZ) referenced in function > > > "int `public: virtual float __cdecl > > > activemq::commands::ActiveMQMapMessage::getFloat(class > > > std::basic_string,class > > > std::allocator > const &)const '::`1'::catch$15" > > > > > (?catch$15@?0??getFloat@ActiveMQMapMessage@commands@activemq@@UEBAMAEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@Z@4HA) > > > 1>libactivemq-cppd.lib(ActiveMQBlobMessage.obj) : error LNK2001: > > > unresolved external symbol "public: virtual bool __cdecl > > > activemq::commands::Message::isExpired(void)const " > > > (?isExpired@Message@commands@activemq@@UEBA_NXZ) > > > 1>libactivemq-cppd.lib(ActiveMQObjectMessage.obj) : error LNK2001: > > > unresolved external symbol "public: virtual bool __cdecl > > > activemq::commands::Message::isExpired(void)const " > > > (?isExpired@Message@commands@activemq@@UEBA_NXZ) > > > 1>libactivemq-cppd.lib(ActiveMQTextMessage.obj) : error LNK2001: > > > unresolved external symbol "public: virtual bool __cdecl > > > activemq::commands::Message::isExpired(void)const " > > > (?isExpired@Message@commands@activemq@@UEBA_NXZ) > > > 1>libactivemq-cppd.lib(ActiveMQBytesMessage.obj) : error LNK2001: > > > unresolved external symbol "public: virtual bool __cdecl > > > activemq::commands::Message::isExpired(void)const " > > > (?isExpired@Message@commands@activemq@@UEBA_NXZ) > > > 1>libactivemq-cppd.lib(ActiveMQMessage.obj) : error LNK2001: unresolved > > > external symbol "public: virtual bool __cdecl > > > activemq::commands::Message::isExpired(void)const " > > > (?isExpired@Message@commands@activemq@@UEBA_NXZ) > > > 1>libactivemq-cppd.lib(ActiveMQStreamMessage.obj) : error LNK2001: > > > unresolved external symbol "public: virtual bool __cdecl > > > activemq::commands::Message::isExpired(void)const " > > > (?isExpired@Message@commands@activemq@@UEBA_NXZ) > > > ... > > > > > > Yes, i have checked the settings in the examples included in the > > > activemq-cpp vs2008 project and my settings are the same. > > > > > > best regards, > > > Andreas > > > > > > > There's clearly something wrong with the amq library build or you are > > attempting to link a 64bit aoo with a 32bit build of the lib, you should > > double check what you built for ActiveMQ-CPP and ensure that you built > > the x64 versions of the libraries. > > > I have resetup my build environment and now only one external symbol is > left unresolved > ""public: virtual __cdecl cms::MessageListener::~MessageListener(void)" > (??1MessageListener@cms@@UEAA@XZ)" > > So it seems that you are right and something was definitive wrong with > local build setup. > > Any idea about the one left error? > > best regards, > Andreas Probably good to double check that the MessageListener.h is included in the project files. Unsure what else would cause that one symbol to not be included. Regards -- Tim Bish ------------ FuseSource Email: tim.bish@fusesource.com Web: http://fusesource.com Twitter: tabish121 Blog: http://timbish.blogspot.com/