[Issue 19586] New: LNK1181 cannot open input file 'phobos-ldc.lib' in VC Project Integration, LDC, and LLVM

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Jan 15 09:11:33 UTC 2019


https://issues.dlang.org/show_bug.cgi?id=19586

          Issue ID: 19586
           Summary: LNK1181 cannot open input file 'phobos-ldc.lib' in VC
                    Project Integration, LDC, and LLVM
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: minor
          Priority: P1
         Component: visuald
          Assignee: nobody at puremagic.com
          Reporter: ibeam2000 at gmail.com

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;
}

--


More information about the Digitalmars-d-bugs mailing list