www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Ldc on Windows

reply Dgame <r.schuett.1987 gmail.com> writes:
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?
Apr 17 2018
parent reply Dgame <r.schuett.1987 gmail.com> writes:
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!
Apr 17 2018
parent reply Nicholas Wilson <iamthewilsonator hotmail.com> writes:
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
Apr 17 2018
next sibling parent reply Dgame <r.schuett.1987 gmail.com> writes:
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?
Apr 17 2018
parent Nicholas Wilson <iamthewilsonator hotmail.com> writes:
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).
Apr 17 2018
prev sibling parent kinke <kinke libero.it> writes:
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.
Apr 17 2018