Return-Path: Delivered-To: apmail-activemq-users-archive@www.apache.org Received: (qmail 33173 invoked from network); 13 Feb 2008 02:57:18 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2008 02:57:18 -0000 Received: (qmail 37916 invoked by uid 500); 13 Feb 2008 02:57:11 -0000 Delivered-To: apmail-activemq-users-archive@activemq.apache.org Received: (qmail 37896 invoked by uid 500); 13 Feb 2008 02:57:11 -0000 Mailing-List: contact users-help@activemq.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@activemq.apache.org Delivered-To: mailing list users@activemq.apache.org Received: (qmail 37887 invoked by uid 99); 13 Feb 2008 02:57:11 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Feb 2008 18:57:11 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of tabish121@gmail.com designates 64.233.178.250 as permitted sender) Received: from [64.233.178.250] (HELO hs-out-0708.google.com) (64.233.178.250) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2008 02:56:39 +0000 Received: by hs-out-0708.google.com with SMTP id 55so472286hsc.6 for ; Tue, 12 Feb 2008 18:56:47 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:subject:from:to:in-reply-to:references:content-type:date:message-id:mime-version:x-mailer:content-transfer-encoding; bh=doryoTQ9QecsxSaduCdHXEyMN/f1P1X+UHCmrrWLCRY=; b=DA+G2LvLFZGD8ut78QYwac7N7Lu0WJpxCrxvUoOcqoiGTMcPQW/nkxHc9IeZJPXCtuc75hyVQd8SP55HsvZ1VsLFdWcLaXBcQWqupYbE/DPGheHIbnV0MBpJQalgnNMtICIfB8+zcqm8S61xSmReHaaGUu4C1je8ty6WE+2B1wk= 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=cc9rGFE4mvYMPIH69vRBdZdV9vVjeBwH6eJdhziw0cYsNLsa1KRNxXC6QKFVgfQGJ0bkyJCm1WSX7iDUsAQ6D0SJ3Z5R2gY3QI9LQRboVTluIiypuOr1V8ai/mIRjWeKbVUrJ8PcSs95KLbQDKzxCwZ9Ag8v+MEDscgsbALebPc= Received: by 10.100.211.8 with SMTP id j8mr2567890ang.119.1202871406945; Tue, 12 Feb 2008 18:56:46 -0800 (PST) Received: from ?192.168.2.40? ( [76.21.168.146]) by mx.google.com with ESMTPS id c53sm2010699wrc.13.2008.02.12.18.56.45 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 12 Feb 2008 18:56:45 -0800 (PST) Subject: Re: status -1 when establishing socket connection - SocketException From: Timothy Bish To: users@activemq.apache.org In-Reply-To: <15448133.post@talk.nabble.com> References: <6262598.post@talk.nabble.com> <6281323.post@talk.nabble.com> <15448133.post@talk.nabble.com> Content-Type: text/plain Date: Tue, 12 Feb 2008 21:56:43 -0500 Message-Id: <1202871403.3547.2.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 (2.12.3-1.fc8) Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org ActiveMQ CPP no longer uses maven as a build tool. We provide a VS2005 project file to build on windows. As far as I know the code won't build using the VC2003 compiler as MS deems it unnecessary to implement the full C++ ISO standard, and so there are language features that we use that are not supported in that compiler. On Tue, 2008-02-12 at 18:38 -0800, beeeph wrote: > I'm trying to follow this process, but I can't find this win32-msvc folder > anywhere. Is it a part of the activemqcpp source distribution? Was it at > one point, but now removed? What is this folder? > > Joe > > > - Lalit Nagpal - wrote: > > > > Hi All- > > > > Here are my findings for people new to C++ and trying to compile > > activemq-cpp with vs .net 2003. The inputs from the forumn was that > > activemq-cpp has been tested with vs 2005 and not with vs .net 2003 ... so > > it is a little rough time for those like me who want to get it running > > with vs 2003. > > > > If you are using maven for building the library here are some inputs for > > you. I found out all this a very hard way and dont want the other new > > comers to go the same way. > > > > Make sure that the following are done > > > > 1. In win32-msvc folder file pom.xml , put the following tag in > > appropriate place > > true > > Since I have my project properties setting "Code generation" as > > "Multi-threaded Debug DLL (/MDd)". > > I should also compile the activemq-cpp library also in the appropriate way > > so i kept this tag under the > > debug > > instead of the release > > > > 2. In the tag add a switch /GR (note both are upper > > case) - this would enable RTTI ... > > Do this setting for both release and debug just to be in sync. > > if you dont put this on you run into the error rtti_object not found .... > > > > 3. All the linking errors that come to you during compile with maven (mvn > > -e package command run under the win32-msvc directory) > > Will be gone if the above approach is followed. > > > > It basically is a miss - match if we dont keep the project settings of vs > > .net 2003 and the pom.xml compiler options in sync > > and can give really wierd results. > > > > Hope that would help the newcomers like me to avoid any wastage of time. > > > > Regards > > > > Lalit Nagpal > > > > > > # Lalit Nagpal # wrote: > >> > >> // Attempt the connection to the server. > >> status = ::connect( socketHandle, > >> ( const sockaddr * )&target_addr, > >> sizeof( target_addr ) ); > >> > >> cout << "stat ... is " << status << endl; > >> if( status < 0 ){ > >> close(); > >> throw SocketException( __FILE__, __LINE__, > >> "Socket::connect - %s", ::strerror( errno ) ); > >> } > >> > >> This piece of code in tcpsocket.cpp throws a socket exception when trying > >> to run the activemq cpp client with vs .net 2003 ... > >> OS is Win XP. Any hints would be really helpful. What could b the > >> possible reasons of the socketexception. > >> > >> Thanks in advance > >> > >> > > > > >