[cfe-dev] Using clang on Windows

Ernest Zaslavsky via cfe-dev cfe-dev at lists.llvm.org
Wed Oct 28 03:15:58 PDT 2015


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:joshua.gerrard at roli.com]
Sent: Wednesday, October 28, 2015 12:09 PM
To: Ernest Zaslavsky <ernest.zaslavsky at sizmek.com>
Cc: cfe-dev at lists.llvm.org
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<http://www.roli.com>.

On 28 Oct 2015, at 10:05, Ernest Zaslavsky via cfe-dev <cfe-dev at lists.llvm.org<mailto:cfe-dev at lists.llvm.org>> 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]<http://feeds.feedburner.com/~r/sizmek-blog/~6/1>
[Image removed by sender.]<http://www.sizmek.com/>
_______________________________________________
cfe-dev mailing list
cfe-dev at lists.llvm.org<mailto:cfe-dev at lists.llvm.org>
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151028/17aca2f6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ~WRD000.jpg
Type: image/jpeg
Size: 823 bytes
Desc: ~WRD000.jpg
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20151028/17aca2f6/attachment.jpg>


More information about the cfe-dev mailing list