MSVC x64: Compilation issues with current head and LLVM 3.5 final

Kai Nacke via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Sun Sep 21 23:32:36 PDT 2014


Hi kink!

Thanks for trying to use LDC2 with MSVC!

On Sunday, 21 September 2014 at 15:06:05 UTC, kink wrote:
> With LLVM head I now get 32 errors with 17 unresolved 
> externals, all due to the non-included LLVMX86Utils.lib. After 
> unloading the ZERO_CHECK project in the VS solution, I'm able 
> to add the missing lib in the project settings and build ldc2 
> successfully from VS without CMake interfering.

This is the result of a change in the LLVM build system. You can 
work around it by adding x86utils to list of LLVM components 
(CMakeLists.txt, line 19).
See LLVM bug http://llvm.org/bugs/show_bug.cgi?id=21016

>> There are more issues you may encounter, for some I use some 
>> local hacks.
>> Need to create some tickets for them.
>
> That'd be great and save others the hassle - and may even get 
> me into looking into them if I can. ;) I know about the missing 
> C99 support of Microsoft's CRT and therefore LDC's MinGW 
> dependency, but apparently VS2013 has improved in that regard.
> I'd strongly encourage all LDC for Windows efforts to follow 
> the MSVC x64 path (instead of 32-bit and/or MinGW-x64!) and 
> only support VS 2013+ due to its broader and more 
> POSIX-compatible CRT, which should reduce the hacking effort..

I'll switch soon to VS2013. These problems should vanish then.

Regards,
Kai


More information about the digitalmars-d-ldc mailing list