[LLVMbugs] [Bug 5675] New: llvm-c/Target.h can not compile with Visual Studio in C

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Thu Dec 3 00:15:06 PST 2009


           Summary: llvm-c/Target.h can not compile with Visual Studio in C
           Product: libraries
           Version: 2.6
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Target-Independent JIT
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: baptiste.lepilleur at gmail.com
                CC: llvmbugs at cs.uiuc.edu

Created an attachment (id=3909)
 --> (http://llvm.org/bugs/attachment.cgi?id=3909)
Patch to remove inline keyword

llvm-c/Target.h fails to compile with Visual Studio when compiling in C mode
due to the usage of the inline keyword (C99 specific I think).

I run into this while trying to compile llvm-py python extension.

I solved this by removing the inline keyword. As the function are static this
compile correctly.

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