Jump to content
  • Advertisement
Sign in to follow this  
ddengster

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

This topic is 776 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

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.

Share this post


Link to post
Share on other sites
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 :(

Share this post


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

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!