Path separator for ldc2 vs. dmd
Brian via digitalmars-d-ldc
digitalmars-d-ldc at puremagic.com
Tue Jun 14 10:55:34 PDT 2016
On Tuesday, 14 June 2016 at 17:21:29 UTC, David Nadlinger wrote:
Thank you for your help.
> Could you have a look at the actual LDC command line (dub has a
> verbose switch)? We might not be handling a particular style of
> path separators correctly.
>
c:....\ldc2\bin\ldc2.exe -lib
-of.dub\build\library-debug-windows-x86-ldc_0-01B767E781ADDCD25E6D4D6DFCF5234D\libDerelictUtil.a -d
-debug -g -w -oq -od=.dub/obj -d-version=Have_derelict_util
-Isource source\derelict\util\exception.d
source\derelict\util\loader.d source\derelict\ut
il\sharedlib.d source\derelict\util\system.d
source\derelict\util\wintypes.d source\derelict\util\xtypes.d
Error: module sourcederelictutilexception is in file
'sourcederelictutilexception.d' which cannot be read
import path[0] = c:..../ldc2/bin/../include/d/ldc
import path[1] = c:..../ldc2/bin/../include/d
import path[2] = source
If I run the ldc2 command directly, then it generates the .obj
files and fails on the lib tool. It's invoking digital mars lib,
but looks like maybe I need to have the visual studio
linker/librarian tool?
The path separator issue seems to be something invoking ldc2 with
dub
C:...\derelict-util-2.0.6>dub --version
DUB version 0.9.24, built on Sep 20 2015
> Does it work if you use ldmd2 as the compiler?
It makes it further and complains that I do not have visual
studio installed (which I do not, though I have the run-time
installed). I was hoping not to need visual studio and thought
that with llvm, I wouldn't.
>
> Best,
> David
More information about the digitalmars-d-ldc
mailing list