[ 
https://issues.apache.org/jira/browse/QPID-2371?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12828105#action_12828105
 ] 

Marcel Roelofs commented on QPID-2371:
--------------------------------------

Steve, everything compiles out of the box with the patch to the cmakefile 
below. The extra define specifies that the compiler targets Windows XP and 
Windows Server 2003; it's necessary to pull some extra declarations into the 
Windows header files that are needed to compile qpid. Apparently this (or 
better) is already the default for VC9 but not for VC8. If the default for VC9 
is higher than I guess taking the VC9 default value won't hurt either.

--- cpp/src/CMakeLists.txt      (revision 904026)
+++ cpp/src/CMakeLists.txt      (working copy)
@@ -404,6 +404,7 @@
       /D "NOMINMAX"
       /D "WIN32_LEAN_AND_MEAN"
       /D "_SCL_SECURE_NO_WARNINGS"
+      /D _WIN32_WINNT=0x0501
       /wd4244
       /wd4800
       /wd4355


> Missing includes for MSVC 2005 compiler
> ---------------------------------------
>
>                 Key: QPID-2371
>                 URL: https://issues.apache.org/jira/browse/QPID-2371
>             Project: Qpid
>          Issue Type: Improvement
>          Components: C++ Broker
>    Affects Versions: 0.6
>         Environment: MSVC 2005
>            Reporter: Marcel Roelofs
>            Assignee: Steve Huston
>            Priority: Minor
>             Fix For: 0.7
>
>         Attachments: msvc2005.patch
>
>
> When compiling the 0.6 release candidate using MSVC 2005 I found some missing 
> header file includes that prevented qpid to compile out of the box. I'll add 
> a patch later.
> Also I had to add "/D _WIN32_WINNT=0x0501" to the compiler flags during cmake 
> makefile generation to prevent compile errors in various components, but I've 
> no idea how to add this to the cmake configuration. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscr...@qpid.apache.org

Reply via email to