From activemq-dev-return-3562-apmail-geronimo-activemq-dev-archive=geronimo.apache.org@geronimo.apache.org Thu Nov 02 11:33:24 2006 Return-Path: Delivered-To: apmail-geronimo-activemq-dev-archive@www.apache.org Received: (qmail 32566 invoked from network); 2 Nov 2006 11:33:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Nov 2006 11:33:23 -0000 Received: (qmail 50581 invoked by uid 500); 2 Nov 2006 11:33:35 -0000 Delivered-To: apmail-geronimo-activemq-dev-archive@geronimo.apache.org Received: (qmail 50464 invoked by uid 500); 2 Nov 2006 11:33:34 -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 50455 invoked by uid 99); 2 Nov 2006 11:33:34 -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 03:33:34 -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 03:33:22 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 77C2F7142BF for ; Thu, 2 Nov 2006 03:33:02 -0800 (PST) Message-ID: <30511621.1162467182487.JavaMail.root@brutus> Date: Thu, 2 Nov 2006 03:33:02 -0800 (PST) From: "Albert Strasheim (JIRA)" To: activemq-dev@geronimo.apache.org Subject: [jira] Created: (AMQ-1021) Release build of ActiveMQ-CPP from trunk with Visual Studio 2005 fails due to Windows headers include order issue 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 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 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