[llvm-dev] Building LLVM with VisualStudio 2017

Gaier, Bjoern via llvm-dev llvm-dev at lists.llvm.org
Fri Oct 26 02:52:11 PDT 2018


But building the LLVM and Clang is no problem at all.
The problem occurs when I use the generated LLVM lib files in a project, which I compile with Clang.

-----Original Message-----
From: llvm-dev <llvm-dev-bounces at lists.llvm.org> On Behalf Of Dennis Luehring via llvm-dev
Sent: Freitag, 26. Oktober 2018 11:41
To: llvm-dev at lists.llvm.org
Subject: Re: [llvm-dev] Building LLVM with VisualStudio 2017

something i expirenced when i added the IRParser lib to the Fibonacci example (using cmakelists.txt) - in a clean first build

after the change i was unable to build the project (with masses of errors)

rebuilding on the console with cmake build "repaired" the sln


Am 26.10.2018 um 11:25 schrieb Gaier, Bjoern via llvm-dev:
> Hello everyone,
>
> so there is something that really bothers me. In the past I build LLVM and Clang via the source code and Visual Studio 2015.
> In my project I used then the freshly new build Clang and the LLVM.
>
> But now, since I compiled with Visual Studio 2017 this is not possible anymore. I'm able to compile both, the LLVM and clang, but when I then use clang as the compiler and the LLVM in my project, I get undefined references to: "__std_reverse_trivially_swappable_4"
> And other functions like this.
>
> I also tried, when CMake has generated the Solution file, to change the compiler to LLVM. Clang is executed then, but still - the same error will occur in my project or different projects when they are compiled with Clang.
>
> What am I doing wrong? It prevents me from continuing my project...
>
> Kind greetings
> Bj rn
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
> http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


_______________________________________________
LLVM Developers mailing list
llvm-dev at lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev


More information about the llvm-dev mailing list