www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 19445] New: Linking to lib under c:\Program Files (x86) does


          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 puremagic.com
          Reporter: russ.haley gmail.com

I'm absolutely new to D and I wanted to say: wow! What a great toolchain so

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

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"  >>
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
========== 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).


Nov 28 2018