Thread overview
Ldc on Windows
Apr 17, 2018
Dgame
Apr 17, 2018
Dgame
Apr 17, 2018
Nicholas Wilson
Apr 17, 2018
Dgame
Apr 17, 2018
Nicholas Wilson
Apr 17, 2018
kinke
April 17, 2018
I'm trying to use Ldc on Windows, but I get these linker errors:

----
OPTLINK (R) for Win32  Release 8.00.17
Copyright (C) Digital Mars 1989-2013  All rights reserved.
http://www.digitalmars.com/ctg/optlink.html
OPTLINK : Warning 9: Unknown Option : OUT
OPTLINK : Warning 9: Unknown Option : LIBPATH
OPTLINK : Warning 9: Unknown Option : D
OPTLINK : Warning 9: Unknown Option : LDC
OPTLINK : Warning 9: Unknown Option : ..
OPTLINK : Warning 9: Unknown Option : LIB
:REF.obj
 Error 2: File Not Found :REF.obj
Error: D:\D\dmd2\windows\bin\link.exe failed with status: 1
----

How can I solve this?
April 17, 2018
On Tuesday, 17 April 2018 at 09:42:01 UTC, Dgame wrote:
> I'm trying to use Ldc on Windows, but I get these linker errors:
>
> ----
> OPTLINK (R) for Win32  Release 8.00.17
> Copyright (C) Digital Mars 1989-2013  All rights reserved.
> http://www.digitalmars.com/ctg/optlink.html
> OPTLINK : Warning 9: Unknown Option : OUT
> OPTLINK : Warning 9: Unknown Option : LIBPATH
> OPTLINK : Warning 9: Unknown Option : D
> OPTLINK : Warning 9: Unknown Option : LDC
> OPTLINK : Warning 9: Unknown Option : ..
> OPTLINK : Warning 9: Unknown Option : LIB
> :REF.obj
>  Error 2: File Not Found :REF.obj
> Error: D:\D\dmd2\windows\bin\link.exe failed with status: 1
> ----
>
> How can I solve this?

Ah, I found the msvcEnv.bat and I told me that I have to VSC installation. Solved!
April 17, 2018
On Tuesday, 17 April 2018 at 10:17:56 UTC, Dgame wrote:
> Ah, I found the msvcEnv.bat and I told me that I have to VSC installation. Solved!

You should also be able to use -link-internally /LLMV's lld if you don't want to install MSVC
April 17, 2018
On Tuesday, 17 April 2018 at 11:01:21 UTC, Nicholas Wilson wrote:
> On Tuesday, 17 April 2018 at 10:17:56 UTC, Dgame wrote:
>> Ah, I found the msvcEnv.bat and I told me that I have to VSC installation. Solved!
>
> You should also be able to use -link-internally /LLMV's lld if you don't want to install MSVC

What would be "/LLMV's lld" in this case?
April 17, 2018
On Tuesday, 17 April 2018 at 12:42:48 UTC, Dgame wrote:
> On Tuesday, 17 April 2018 at 11:01:21 UTC, Nicholas Wilson wrote:
>> On Tuesday, 17 April 2018 at 10:17:56 UTC, Dgame wrote:
>>> Ah, I found the msvcEnv.bat and I told me that I have to VSC installation. Solved!
>>
>> You should also be able to use -link-internally /LLMV's lld if you don't want to install MSVC
>
> What would be "/LLMV's lld" in this case?

Sorry that was meant to be -link-internally / LLMV's lld (i.e. not a command line option. I forgot windows uses / for that.

I mean lld-link.exe or link-lld.exe (can't remember which) that comes with the dmd  install (and I think ldc install? or maybe you just use -link-internally).
April 17, 2018
On Tuesday, 17 April 2018 at 11:01:21 UTC, Nicholas Wilson wrote:
> You should also be able to use -link-internally /LLMV's lld if you don't want to install MSVC

Nope, the MSVC libs are still required, and no, the ancient ones shipping with DMD can't be used.