Opened 14 years ago

Closed 14 years ago

#2065 closed Bugs (fixed)

[boost.thread] compile errors when using boost.thread library together with Microsoft SDK for Windows Vista

Reported by: peter.schneider@… Owned by: Anthony Williams
Milestone: Boost 1.36.0 Component: thread
Version: Boost Release Branch Severity: Problem
Keywords: compiler error SDK thread Cc:

Description

Boost version: revision 46956 of the release branch (http://svn.boost.org/svn/boost/branches/release)

Compiler: Visual Studio 2005 with Service Pack 1 and Windows SDK for Windows Vista (v6.0)

When I try to compile a file which only contains the following #include

#include <boost/thread.hpp>

I get a compilation error:

… boost\thread\win32\thread_primitives.hpp(286) : error C2733: second C linkage of overloaded function '_interlockedbittestandset' not allowed

If Windows SDK for Windows Vista is removed, the error does not occur.

Change History (1)

comment:1 by Anthony Williams, 14 years ago

Resolution: fixed
Status: newclosed

Fixed on trunk

Note: See TracTickets for help on using tickets.