Linking with a c library on windows with ldc

maik klein via digitalmars-d-ldc digitalmars-d-ldc at puremagic.com
Fri Apr 1 09:28:53 PDT 2016


On Friday, 1 April 2016 at 15:47:42 UTC, Kai Nacke wrote:
> On Friday, 1 April 2016 at 15:14:32 UTC, maik klein wrote:
>> [...]
>
> Hi Maik!
>
> ldc is built with VS2015 and this is also the recommended VS 
> version. You can use VS2013 but this requires manual work and 
> is not really tested by the LDC team.
>
> vcvarsall.bat is part of VS2015. It is located in folder 
> "C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC". If 
> you use the "VS2015 x64 Native Tools Command Prompt" then the 
> path is automatically set and the file should be found by ldc.
>
> It looks like your PATH variable is messed. Can you link a 
> "hello world" with cl on the command line? Which link.exe is 
> used if the VS path are not set? Could it be that the DMD 
> linker is still in your path? If yes then you should remove it 
> from your path.
>
> Regards,
> Kai
It seems that for some reason I didn't install the common c++ 
extension for VS2015.

Oh my god it finally builds and links, I can't believe it.

LDC is now my default compiler, keep up the good work and thanks 
for the help.



More information about the digitalmars-d-ldc mailing list