-
-
Notifications
You must be signed in to change notification settings - Fork 256
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Win64] LINK : fatal error LNK1181: cannot open input file 'legacy_stdio_definitions.lib #1085
Comments
Please edit your ldc2.conf file and remove the "-Llegacy_stdio_definitions.lib" default switch when using VS < 2015. It's required (and only available) for VS 2015. If we wanted to do that automatically, we'd have to detect the MS linker version during LDC runtime and add that switch accordingly - I suppose that's not gonna happen soon. ;) |
Ok. Worked. |
Hmm I ran into the same issue when setting up a appveyor CI for to test mir against ldc. |
In more recent versions the library is no longer passed on the command line through the configuration file, but compiled into the library as a "default library". You can pass |
Thanks a lot @rainers - I just got it to work with Visual Studio 2015 (v14) :) |
Compile the following project with DUB: https://github.com/p0nce/dplug/tree/master/examples/distort
OS: Win64
Compiler: Version: LDC 0.16.0-alpha3
How to reproduce:
$ dub build --build=debug --arch=x86_64 --compiler=ldc2 --force --combined
(I use
--combined
to avoid #1084 )VS linker: I use the Microsoft Visual Studio 12.0 linker.
Output:
The text was updated successfully, but these errors were encountered: