Boost Threads with CLR

前端 未结 1 1673
心在旅途
心在旅途 2020-12-31 12:33

Using Visual Studio 2008 and Boost Libraries 1.46.1 I want to compile and link the following with the /CLR flag:

#include 
voi         


        
1条回答
  •  离开以前
    2020-12-31 12:43

    I've already run into this problem, i don't remember where i got this but one workaround is declare "boost.detail.win32._SECURITY_ATTRIBUTES" after including all the boost headers like so.

    namespace boost { 
        namespace detail { 
            namespace win32 { 
                struct _SECURITY_ATTRIBUTES: public ::_SECURITY_ATTRIBUTES {}; 
            };
        };
    }; 
    

    Remove the namespaces if you want everyone to see it.

    0 讨论(0)
提交回复
热议问题