Bug 19586 – LNK1181 cannot open input file 'phobos-ldc.lib' in VC Project Integration, LDC, and LLVM

Status
RESOLVED
Resolution
WORKSFORME
Severity
minor
Priority
P1
Component
visuald
Product
D
Version
D2
Platform
x86_64
OS
Windows
Creation time
2019-01-15T09:11:33Z
Last change time
2019-05-31T16:44:06Z
Assigned to
No Owner
Creator
Lobachevsky

Comments

Comment #0 by ibeam2000 — 2019-01-15T09:11:33Z
When using VC Project Integration with LDC and LLVM, I get the following error LNK1181 cannot open input file 'phobos-ldc.lib' when building a simple example (below) for Debug x64. Release x64 builds. Debug x86 builds. (Release x86 has errors) Simple example D: module test; import std.stdio; extern (C++) int msg(int z); int main() { writeln("D World\n"); writeln(msg(43)); return 41; } Simple example C++: #include "pch.h" #include <iostream> int msg(int z) { std::cout << "C++ World\n"; return 42 + z * 0; }
Comment #1 by r.sagitario — 2019-01-19T20:34:56Z
What LDC version are you using? What VS version? Visual D assumes that you have the "multilib" version installed with a folder lib32 for the x86 libraries.
Comment #2 by kinke — 2019-01-19T23:09:34Z
The name is phobos2-ldc.lib, '2' is apparently missing.
Comment #3 by r.sagitario — 2019-01-20T09:49:29Z
> The name is phobos2-ldc.lib, '2' is apparently missing. phobos-ldc.lib does not appear anywhere in the visuald source. Maybe it used to but I can't find it in the history. @Lobachevsky: what version of Visual D are you using? Maybe an update helps.
Comment #4 by r.sagitario — 2019-05-31T16:44:06Z
I guess the missing '2' was a typo, as the error message seems to manually copied (it also misses a colon). I suspect this is fixed by installing the multilib version, you can now also use the full installer found here: https://github.com/dlang/visuald/releases/tag/v0.50.0-beta1 Please reopen with more details if the error persists.