• Advertisement
Sign in to follow this  

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

This topic is 593 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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.

 

 

Share this post


Link to post
Share on other sites
Advertisement
Sign in to follow this  

  • Advertisement