You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@activemq.apache.org by "Albert Strasheim (JIRA)" <ji...@apache.org> on 2006/11/02 12:33:02 UTC

[jira] Created: (AMQ-1021) Release build of ActiveMQ-CPP from trunk with Visual Studio 2005 fails due to Windows headers include order issue

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 <cppunit/TestFixture.h>
 #include <cppunit/extensions/HelperMacros.h>

+#include <activemq/util/Endian.h>
 #include <activemq/exceptions/ActiveMQException.h>
 #include <activemq/io/BufferedInputStream.h>
 #include <activemq/io/ByteArrayInputStream.h>
-#include <activemq/util/Endian.h>
 #include <activemq/io/DataInputStream.h>

 #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

        

[jira] Resolved: (AMQ-1021) Release build of ActiveMQ-CPP from trunk with Visual Studio 2005 fails due to Windows headers include order issue

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-1021?page=all ]

Timothy Bish resolved AMQ-1021.
-------------------------------

    Resolution: Fixed

I moved the include of Endian.h, although It built for me in VC2005 Express just fine the way it was. 

> 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 <cppunit/TestFixture.h>
>  #include <cppunit/extensions/HelperMacros.h>
> +#include <activemq/util/Endian.h>
>  #include <activemq/exceptions/ActiveMQException.h>
>  #include <activemq/io/BufferedInputStream.h>
>  #include <activemq/io/ByteArrayInputStream.h>
> -#include <activemq/util/Endian.h>
>  #include <activemq/io/DataInputStream.h>
>  #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

        

[jira] Commented: (AMQ-1021) Release build of ActiveMQ-CPP from trunk with Visual Studio 2005 fails due to Windows headers include order issue

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/activemq/browse/AMQ-1021?page=comments#action_37343 ] 
            
Timothy Bish commented on AMQ-1021:
-----------------------------------

I've updated the project files and they now build in release mode.  Try that out and see if its works better for you.

> 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 <cppunit/TestFixture.h>
>  #include <cppunit/extensions/HelperMacros.h>
> +#include <activemq/util/Endian.h>
>  #include <activemq/exceptions/ActiveMQException.h>
>  #include <activemq/io/BufferedInputStream.h>
>  #include <activemq/io/ByteArrayInputStream.h>
> -#include <activemq/util/Endian.h>
>  #include <activemq/io/DataInputStream.h>
>  #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

        

[jira] Closed: (AMQ-1021) Release build of ActiveMQ-CPP from trunk with Visual Studio 2005 fails due to Windows headers include order issue

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-1021?page=all ]

Timothy Bish closed AMQ-1021.
-----------------------------

    Resolution: Fixed

Builds fine now that all settings are up to date in both release and debug

> 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 <cppunit/TestFixture.h>
>  #include <cppunit/extensions/HelperMacros.h>
> +#include <activemq/util/Endian.h>
>  #include <activemq/exceptions/ActiveMQException.h>
>  #include <activemq/io/BufferedInputStream.h>
>  #include <activemq/io/ByteArrayInputStream.h>
> -#include <activemq/util/Endian.h>
>  #include <activemq/io/DataInputStream.h>
>  #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

        

[jira] Assigned: (AMQ-1021) Release build of ActiveMQ-CPP from trunk with Visual Studio 2005 fails due to Windows headers include order issue

Posted by "Timothy Bish (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQ-1021?page=all ]

Timothy Bish reassigned AMQ-1021:
---------------------------------

    Assignee: Timothy Bish

> 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 <cppunit/TestFixture.h>
>  #include <cppunit/extensions/HelperMacros.h>
> +#include <activemq/util/Endian.h>
>  #include <activemq/exceptions/ActiveMQException.h>
>  #include <activemq/io/BufferedInputStream.h>
>  #include <activemq/io/ByteArrayInputStream.h>
> -#include <activemq/util/Endian.h>
>  #include <activemq/io/DataInputStream.h>
>  #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

        

[jira] Updated: (AMQCPP-2) Release build of ActiveMQ-CPP from trunk with Visual Studio 2005 fails due to Windows headers include order issue

Posted by "Hiram Chirino (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-2?page=all ]

Hiram Chirino updated AMQCPP-2:
-------------------------------

    Fix Version/s: 1.0

> Release build of ActiveMQ-CPP from trunk with Visual Studio 2005 fails due to Windows headers include order issue
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQCPP-2
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-2
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>         Environment: Windows
>            Reporter: Albert Strasheim
>         Assigned To: Timothy Bish
>             Fix For: 1.0
>
>
> 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 <cppunit/TestFixture.h>
>  #include <cppunit/extensions/HelperMacros.h>
> +#include <activemq/util/Endian.h>
>  #include <activemq/exceptions/ActiveMQException.h>
>  #include <activemq/io/BufferedInputStream.h>
>  #include <activemq/io/ByteArrayInputStream.h>
> -#include <activemq/util/Endian.h>
>  #include <activemq/io/DataInputStream.h>
>  #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

        

[jira] Reopened: (AMQ-1021) Release build of ActiveMQ-CPP from trunk with Visual Studio 2005 fails due to Windows headers include order issue

Posted by "Albert Strasheim (JIRA)" <ji...@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 <cppunit/TestFixture.h>
>  #include <cppunit/extensions/HelperMacros.h>
> +#include <activemq/util/Endian.h>
>  #include <activemq/exceptions/ActiveMQException.h>
>  #include <activemq/io/BufferedInputStream.h>
>  #include <activemq/io/ByteArrayInputStream.h>
> -#include <activemq/util/Endian.h>
>  #include <activemq/io/DataInputStream.h>
>  #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

        

[jira] Moved: (AMQCPP-2) Release build of ActiveMQ-CPP from trunk with Visual Studio 2005 fails due to Windows headers include order issue

Posted by "Nathan Mittler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/activemq/browse/AMQCPP-2?page=all ]

Nathan Mittler moved AMQ-1021 to AMQCPP-2:
------------------------------------------

              Project: ActiveMQ C++ Client  (was: ActiveMQ)
                  Key: AMQCPP-2  (was: AMQ-1021)
          Component/s:     (was: CMS (C++ client))
    Affects Version/s:     (was: 4.0.1)

> Release build of ActiveMQ-CPP from trunk with Visual Studio 2005 fails due to Windows headers include order issue
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: AMQCPP-2
>                 URL: https://issues.apache.org/activemq/browse/AMQCPP-2
>             Project: ActiveMQ C++ Client
>          Issue Type: Bug
>         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 <cppunit/TestFixture.h>
>  #include <cppunit/extensions/HelperMacros.h>
> +#include <activemq/util/Endian.h>
>  #include <activemq/exceptions/ActiveMQException.h>
>  #include <activemq/io/BufferedInputStream.h>
>  #include <activemq/io/ByteArrayInputStream.h>
> -#include <activemq/util/Endian.h>
>  #include <activemq/io/DataInputStream.h>
>  #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