[Issue 19445] New: Linking to lib under c:\Program Files (x86) does not work in Visual D
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Thu Nov 29 06:16:48 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=19445
Issue ID: 19445
Summary: Linking to lib under c:\Program Files (x86) does not
work in Visual D
Product: D
Version: D2
Hardware: x86_64
OS: Windows
Status: NEW
Severity: minor
Priority: P1
Component: visuald
Assignee: nobody at puremagic.com
Reporter: russ.haley at gmail.com
Hello,
I'm absolutely new to D and I wanted to say: wow! What a great toolchain so
far.
Anyway, I am testing sslsocket.d from https://github.com/adamdruppe/arsd. I was
trying to link to libressl libraries that are stored under C:\Program Files
(x86)\LibreSSL\lib.
I go into Project Properties->Configuration Properties->Linker->General and add
the Library files through the file selector. The value in the text box is:
"..\..\..\..\..\..\Program Files (x86)\LibreSSL\lib\ssl.lib
*Note the solitary double quote.
The linker error is thus:
------ Build started: Project: DApp1, Configuration: Debug Win32 ------
Building Win32\Debug\DApp1.exe...
"Win32\Debug\DApp1.obj" /OUT:"Win32\Debug\DApp1.exe"
""..\..\..\..\..\..\Program Files (x86)\LibreSSL\lib\ssl.lib" >>
C:\Users\russh\source\repos\DApp1\DApp1\Win32\Debug\DApp1.link.rsp
LINK : warning LNK4001: no object files specified; libraries used
LINK : warning LNK4068: /MACHINE not specified; defaulting to X86
LINK : fatal error LNK1159: no output file specified
Building Win32\Debug\DApp1.exe failed!
Details saved as
"file://C:\Users\russh\source\repos\DApp1\DApp1\Win32\Debug\DApp1.buildlog.html"
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========
I tried various quoting machinations to no avail. I am reporting this error
because I managed to build by linking from a different directory that has no
spaces in the path.
I also noted that the library search path box produced the same single quote
when I tried with program files (x86).
Cheers,
Russ
--
More information about the Digitalmars-d-bugs
mailing list