LLVM and visual studio 2013 problems (precompiled headers + windows.h))

Started by
1 comment, last by Hodgman 7 years, 7 months ago

So I'm attempting to convert my project to LLVM(http://llvm.org/builds/) as the compile toolset for visual studio 2013, and I've encountered annoying problems.

One is regarding windows.h:

C:\Program Files (x86)\Windows Kits\8.1\Include\um/oaidl.h(473,30): error : cannot combine with previous 'type-name' declaration specifier

C:\Program Files (x86)\Windows Kits\8.1\Include\um/PropIdl.h(473,30): error : cannot combine with previous 'type-name' declaration specifier

both these errors point to a similar line of code:

_VARIANT_BOOL bool;

I've commented them out for the time being(not advisable since it's a windows sdk file) since I can't find any other answer on this. If someone has a better solution to this it would be great.

The other is regarding precompiled headers, the current toolset isn't translating the precompiled header settings at all. According to http://clang.llvm.org/docs/UsersManual.html#usersmanual-precompiled-headers, you should be able to do it but I'm wondering where to insert that build command within visual studio's build settings.

Also, if you can, please tell me about the current state of llvm-clang on visual studio 2015 at all, and whether it's an actual improvement over microsoft's compile toolset. I might consider upgrading to it.

Advertisement

No replies from any llvm users? Pity:( For something that posts good benchmarks over other compilers, it seems that people arent using it much to talk about it.

I've only used it to cross-compile to other platforms from Windows/VS, so no idea how well it deals with any Windows/MS headers, sorry :(

This topic is closed to new replies.

Advertisement