Return-Path: Delivered-To: apmail-geronimo-activemq-dev-archive@www.apache.org Received: (qmail 52155 invoked from network); 2 Nov 2006 12:33:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2006 12:33:24 -0000 Received: (qmail 58346 invoked by uid 500); 2 Nov 2006 12:33:35 -0000 Delivered-To: apmail-geronimo-activemq-dev-archive@geronimo.apache.org Received: (qmail 58324 invoked by uid 500); 2 Nov 2006 12:33:35 -0000 Mailing-List: contact activemq-dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: activemq-dev@geronimo.apache.org Delivered-To: mailing list activemq-dev@geronimo.apache.org Received: (qmail 58315 invoked by uid 99); 2 Nov 2006 12:33:35 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 04:33:35 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 02 Nov 2006 04:33:23 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 54F9C7142C1 for ; Thu, 2 Nov 2006 04:33:03 -0800 (PST) Message-ID: <26125760.1162470783342.JavaMail.root@brutus> Date: Thu, 2 Nov 2006 04:33:03 -0800 (PST) From: "Albert Strasheim (JIRA)" To: activemq-dev@geronimo.apache.org Subject: [jira] Reopened: (AMQ-1021) Release build of ActiveMQ-CPP from trunk with Visual Studio 2005 fails due to Windows headers include order issue In-Reply-To: <30511621.1162467182487.JavaMail.root@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/activemq/browse/AMQ-1021?page=all ] Albert Strasheim reopened AMQ-1021: ----------------------------------- I'm having the same issue in TransactionTester.cpp, but I've found a solution. Note that the Debug build works fine -- the Release build is causing problems. Adding WIN32_LEAN_AND_MEAN to the Release build defines solves the problem. > Release build of ActiveMQ-CPP from trunk with Visual Studio 2005 fails due to Windows headers include order issue > ----------------------------------------------------------------------------------------------------------------- > > Key: AMQ-1021 > URL: https://issues.apache.org/activemq/browse/AMQ-1021 > Project: ActiveMQ > Issue Type: Bug > Components: CMS (C++ client) > Affects Versions: 4.0.1 > Environment: Windows > Reporter: Albert Strasheim > Assigned To: Timothy Bish > > Doing a release build of ActiveMQ-CPP from trunk with Visual Studio 2005 results in the following error when compiling DataInputStreamTest.cpp: > {quote} > 1>------ Build started: Project: vc2005-activemq-unittests, Configuration: Release Win32 ------ > 1>Compiling... > 1>DataInputStreamTest.cpp > 1>f:\activemq-cpp\src\main\activemq/io/ByteArrayInputStream.h(142) : warning C4244: 'return' : conversion from '__w64 int' to 'int', possible loss of data > 1>C:\Program Files\Microsoft Platform SDK\Include\Winsock2.h(112) : error C2011: 'fd_set' : 'struct' type redefinition > 1> C:\Program Files\Microsoft Platform SDK\Include\winsock.h(54) : see declaration of 'fd_set' > 1>C:\Program Files\Microsoft Platform SDK\Include\Winsock2.h(147) : warning C4005: 'FD_SET' : macro redefinition > 1> C:\Program Files\Microsoft Platform SDK\Include\winsock.h(88) : see previous definition of 'FD_SET' > 1>C:\Program Files\Microsoft Platform SDK\Include\Winsock2.h(156) : error C2011: 'timeval' : 'struct' type redefinition > 1> C:\Program Files\Microsoft Platform SDK\Include\winsock.h(97) : see declaration of 'timeval' > ... > {quote} > This error happens when some combination of winsock.h, winsock2.h and windows.h is included in the wrong order. The following change fixes the problem and might provide some clue as to what is going on. > {quote} > Index: DataInputStreamTest.h > =================================================================== > --- DataInputStreamTest.h (revision 470321) > +++ DataInputStreamTest.h (working copy) > @@ -21,10 +21,10 @@ > #include > #include > +#include > #include > #include > #include > -#include > #include > #ifdef min > {quote} -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: https://issues.apache.org/activemq/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira