[LLVMbugs] [Bug 7160] New: LLVM doesn't compile in VS2005 "error C2733: second C linkage of overloaded function"

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Mon May 17 16:59:07 PDT 2010


http://llvm.org/bugs/show_bug.cgi?id=7160

           Summary: LLVM doesn't compile in VS2005 "error C2733: second C
                    linkage of overloaded function"
           Product: libraries
           Version: 2.7
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P
         Component: System Library
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: mark.macvicar at caustic.com
                CC: llvmbugs at cs.uiuc.edu


LLVM doesn't compile in VS2005 "error C2733: second C linkage of overloaded
function"

Visual Studio 2005 wont compile LLVM 2.7

Reproducible Steps:
1. Generate VS2005 projects using "cmake -G Visual Studio 8 2005"
2. Open LLVM.sln in VS2005
3. Build LLVMSystem

The following error is reported:
------------------------------
2>Host.cpp
2>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\intrin.h(944) :
error C2733: second C linkage of overloaded function
'_interlockedbittestandset' not allowed
2>        C:\Program Files (x86)\Microsoft Visual Studio
8\VC\include\intrin.h(944) : see declaration of '_interlockedbittestandset'
2>C:\Program Files (x86)\Microsoft Visual Studio 8\VC\include\intrin.h(945) :
error C2733: second C linkage of overloaded function
'_interlockedbittestandreset' not allowed
2>        C:\Program Files (x86)\Microsoft Visual Studio
8\VC\include\intrin.h(945) : see declaration of '_interlockedbittestandreset'
------------------------------

VS2008 doesn't have this issue.

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list