Using clang on Windows

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Using clang on Windows

Don Hinton via cfe-dev

Greetings List,

 

I would like to use clang on Windows, mostly for all these tools available with clang like modernize or tidy. However, I’m stuck at very basic stage of building thirdparties, namely boost. I cannot build it using b2, OTOH boost does not have clang in compatible compilers list for windows, so, I guess it is dead end. On the other hand most of boost usage is via NuGet packages which includes all necessary headers/sources right into VS project. I have clang 3.8 installed and if I try to build it using LLVM toolset from within VS2015 it fails with compilation errors, again, boost related.

 

So, the questions are is it possible at all to use clang on windows to build a decent sized project? Does anyone have successful experience building boost on windows? Does anyone have experience building large project using clang directly from VS?

 

Thanks!

 

Read More


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using clang on Windows

Don Hinton via cfe-dev
Regarding clang on Windows - I use it personally to build a large project (JUCE), the only place it’s tripping up for me is exceptions.
Last time I tried working with VS 2015 and clang, clang couldn’t handle the headers. The situation on VS 2013 is much nicer.
Note that’s just building; I haven’t tried running it.

--
Joshua Gerrard
JUCE Software Developer

ROLI’s award-winning Seaboard GRAND, celebrated as the “piano of the future”, is now joined by the Seaboard RISE, “every bit as slimline and attractive as its bigger brother”. The press is hailing the Seaboard RISE as “innovative”, “expressive”, “accessible”, and “a keyboard controller that does to piano keys what 3D touch does to the iPhone”. Now available for preorder at www.roli.com.

On 28 Oct 2015, at 10:05, Ernest Zaslavsky via cfe-dev <[hidden email]> wrote:

Greetings List,
 
I would like to use clang on Windows, mostly for all these tools available with clang like modernize or tidy. However, I’m stuck at very basic stage of building thirdparties, namely boost. I cannot build it using b2, OTOH boost does not have clang in compatible compilers list for windows, so, I guess it is dead end. On the other hand most of boost usage is via NuGet packages which includes all necessary headers/sources right into VS project. I have clang 3.8 installed and if I try to build it using LLVM toolset from within VS2015 it fails with compilation errors, again, boost related.
 
So, the questions are is it possible at all to use clang on windows to build a decent sized project? Does anyone have successful experience building boost on windows? Does anyone have experience building large project using clang directly from VS?
 
Thanks!
 

Read More

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev
Reply | Threaded
Open this post in threaded view
|

Re: Using clang on Windows

Don Hinton via cfe-dev

That’s what I’m trying to achieve, just compile it

1)      Exceptions are handled – https://llvm.org/bugs/show_bug.cgi?format=multiple&id=21450

2)      I had problems with headers when tried to build boost using b2, no such a problem in VS but I get compilation errors

1>D:\Development\DEV4\Infrastructure\Server\Solutions\packages\boost.1.59.0.0\build\native\..\..\lib\native\include\boost/typeof/msvc/typeof_impl.hpp(150,31): error : template specialization or definition requires a template parameter list corresponding to the nested type 'base_type' (aka 'msvc_extract_type<ID>')

1>              struct base_type::id2type // This uses nice VC6.5 and VC7.1 bugfeature

1>                     ~~~~~~~~~  ^

1>D:\Development\DEV4\Infrastructure\Server\Solutions\packages\boost.1.59.0.0\build\native\..\..\lib\native\include\boost/typeof/msvc/typeof_impl.hpp(150,20): error : nested name specifier for a declaration cannot depend on a template parameter

1>              struct base_type::id2type // This uses nice VC6.5 and VC7.1 bugfeature

1>                     ^~~~~~~~~~~

 

Which is odd since this code is under #ifdef and should not be compiled at all.

From: Joshua Gerrard [mailto:[hidden email]]
Sent: Wednesday, October 28, 2015 12:09 PM
To: Ernest Zaslavsky <[hidden email]>
Cc: [hidden email]
Subject: Re: [cfe-dev] Using clang on Windows

 

Regarding clang on Windows - I use it personally to build a large project (JUCE), the only place it’s tripping up for me is exceptions.

Last time I tried working with VS 2015 and clang, clang couldn’t handle the headers. The situation on VS 2013 is much nicer.

Note that’s just building; I haven’t tried running it.

 

--
Joshua Gerrard
JUCE Software Developer

ROLI’s award-winning Seaboard GRAND, celebrated as the “piano of the future”, is now joined by the Seaboard RISE, “every bit as slimline and attractive as its bigger brother”. The press is hailing the Seaboard RISE as “innovative”, “expressive”, “accessible”, and “a keyboard controller that does to piano keys what 3D touch does to the iPhone”. Now available for preorder at www.roli.com.

 

On 28 Oct 2015, at 10:05, Ernest Zaslavsky via cfe-dev <[hidden email]> wrote:

 

Greetings List,

 

I would like to use clang on Windows, mostly for all these tools available with clang like modernize or tidy. However, I’m stuck at very basic stage of building thirdparties, namely boost. I cannot build it using b2, OTOH boost does not have clang in compatible compilers list for windows, so, I guess it is dead end. On the other hand most of boost usage is via NuGet packages which includes all necessary headers/sources right into VS project. I have clang 3.8 installed and if I try to build it using LLVM toolset from within VS2015 it fails with compilation errors, again, boost related.

 

So, the questions are is it possible at all to use clang on windows to build a decent sized project? Does anyone have successful experience building boost on windows? Does anyone have experience building large project using clang directly from VS?

 

Thanks!

 

Image removed by sender. Read More

Image removed by sender.

_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

 


_______________________________________________
cfe-dev mailing list
[hidden email]
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev