Return-Path: Delivered-To: apmail-geronimo-activemq-users-archive@www.apache.org Received: (qmail 56474 invoked from network); 13 Sep 2006 17:17:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 13 Sep 2006 17:17:17 -0000 Received: (qmail 66430 invoked by uid 500); 13 Sep 2006 17:17:16 -0000 Delivered-To: apmail-geronimo-activemq-users-archive@geronimo.apache.org Received: (qmail 66376 invoked by uid 500); 13 Sep 2006 17:17:15 -0000 Mailing-List: contact activemq-users-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-users@geronimo.apache.org Delivered-To: mailing list activemq-users@geronimo.apache.org Received: (qmail 66344 invoked by uid 99); 13 Sep 2006 17:17:15 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Sep 2006 10:17:15 -0700 Authentication-Results: idunn.apache.osuosl.org smtp.mail=Tim.Bish@Sensis.com; spf=permerror X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received-SPF: error (idunn.apache.osuosl.org: domain Sensis.com from 199.105.164.5 cause and error) Received: from ([199.105.164.5:38402] helo=smtpmail2.sensis.com) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 67/71-10245-EDC38054 for ; Wed, 13 Sep 2006 10:17:29 -0700 Received: from dimstar2.ats.sensis.com ([172.21.1.6]) by smtpmail2.sensis.com with esmtp (Exim 4.50) id 1GNYL4-0003jA-JC for activemq-users@geronimo.apache.org; Wed, 13 Sep 2006 13:15:54 -0400 Received: from corpatsmail1.ats.sensis.com ([172.21.1.88] helo=corpatsmail1.corp.sensis.com) by dimstar2.ats.sensis.com with esmtp (Exim 4.50) id 1GNYKa-0001dJ-Be for activemq-users@geronimo.apache.org; Wed, 13 Sep 2006 13:15:24 -0400 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: pom.xml for Date: Wed, 13 Sep 2006 13:15:09 -0400 Message-ID: <5A211522579EBD4A83155ED7FA1530637FC4EC@corpatsmail1.corp.sensis.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: pom.xml for Thread-Index: AcbXSVCPMc5vZ7R7TbSDT9IzkenPGQADkvzA From: "Bish, Tim" To: X-Sensis-MailScanner-Information: Scanned at Sensis Corporation by MailScanner X-Sensis-MailScanner: Found to be clean X-Sensis-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-4.399, required 5, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-Sensis-MailScanner-From: tim.bish@sensis.com X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N >=20 > Hey Tim- >=20 > Plz tell me how to create an issue and put the pom.xml file there then ... You have to go here and create an account, and then you can create an issue against the CMS stuff. http://issues.apache.org/activemq/browse/AMQ >=20 > There is another change that is required, you are required to replace the > method vsnprintf (in ActiveMQException.cpp method buildMessage()) to > _vsnprintf else it gives a compilation error. I'm pretty sure that exists in VC 2003, its still there in 2005 but its deprecated so you get a warning. The _vsn stuff is another MS creation and won't port to Linux....sigh >=20 > Thanks for all the help. >=20 > Rgds >=20 > Lalit Nagpal >=20 >=20 > tabish121 wrote: > > > >> > >> > >> Here are my findings for people new to C++ and trying to compile > > activemq- > >> cpp > >> with vs .net 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. > > > > Nice work. Probably the most helpful thing would be for you to create a > > VC 2003 pom.xml in another folder like the one's that are already there. > > Since I don't have access to VC 2003 I can't really tell what works and > > what doesn't. If you create an issue and attach a pom.xml for VC 2003 I > > can get it into the SVN repo. > > > >> > >> 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) > > > > Ah yes, forgot about that little bit of goodness from the older MSVC > > products. > > > >> - 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 =3D ::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 > >> > > >> > > >> > >> -- > >> View this message in context: http://www.nabble.com/status--1-when- > >> > > establishing-socket-connection---SocketException-tf2257720.html#a6281323 > >> Sent from the ActiveMQ - User forum at Nabble.com. > > > > > > > http://www.nabble.com/user-files/235994/pom_vc2003.xml pom_vc2003.xml > http://www.nabble.com/user-files/235994/pom_vc2003.xml pom_vc2003.xml > -- > View this message in context: http://www.nabble.com/status--1-when- > establishing-socket-connection---SocketException-tf2257720.html#a6287741 > Sent from the ActiveMQ - User forum at Nabble.com.