[LLVMdev] LLVM 3.6: problems building on Windows using MSVC 2013
Zachary Turner
zturner at google.com
Tue Mar 10 09:39:47 PDT 2015
To be certain, are you using MSVC 2013 Update 4?
On Tue, Mar 10, 2015 at 9:18 AM Alan Garny <agarny at hellix.com> wrote:
> > > So… my question is: why?! More importantly: what do I need to do to be
> > > able to export/import a class such as clang::driver::Compilation?
> >
> > It looks like MSVC is trying to synthesize and export the copy assignment
> > operator and copy constructur. This is interesting, as I thought it
> wouldn't do
> > that if the class turns out not to be non-copyable.
> >
> > Does adding the following to the class (and similarly for others that are
> > failing) work?
> >
> > Compilation& operator=(Compilation&) = delete;
> > Compilation(Compilation&) = delete
>
> Good timing. This is the conclusion and solution to which I came too. I
> have tried it on my test case and it is working fine. I am now going to try
> it on my project and see how it goes, but at least that seems promising.
>
> Alan
>
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev at cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20150310/0b69e4f5/attachment.html>
More information about the llvm-dev
mailing list