Thread overview | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
September 21, 2015 Do users need to install VS runtime redistributable if linking with Microsoft linker? | ||||
---|---|---|---|---|
| ||||
All in the title. DMD 64-bit links with the VS linker. Do users need to install the VS redistributable libraries? |
September 22, 2015 Re: Do users need to install VS runtime redistributable if linking with Microsoft linker? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ponce | On Monday, 21 September 2015 at 15:00:24 UTC, ponce wrote:
> All in the title.
>
> DMD 64-bit links with the VS linker.
> Do users need to install the VS redistributable libraries?
I think they don't.
Generated .exe seems to depend only on kernel32.dll and shell32.dll, i.e. things users already have.
|
September 22, 2015 Re: Do users need to install VS runtime redistributable if linking with Microsoft linker? | ||||
---|---|---|---|---|
| ||||
Posted in reply to thedeemon | On Tuesday, 22 September 2015 at 09:38:12 UTC, thedeemon wrote:
> I think they don't.
> Generated .exe seems to depend only on kernel32.dll and shell32.dll, i.e. things users already have.
Great then.
|
September 28, 2015 Re: Do users need to install VS runtime redistributable if linking with Microsoft linker? | ||||
---|---|---|---|---|
| ||||
Posted in reply to thedeemon | On Tuesday, 22 September 2015 at 09:38:12 UTC, thedeemon wrote: > On Monday, 21 September 2015 at 15:00:24 UTC, ponce wrote: >> All in the title. >> >> DMD 64-bit links with the VS linker. >> Do users need to install the VS redistributable libraries? > > I think they don't. > Generated .exe seems to depend only on kernel32.dll and shell32.dll, i.e. things users already have. So I've released software with LDC 0.16.0-alpha4 Win64, and one user send me that http://i.imgur.com/xbU1VeS.png I thought it was only used for linking :( Does it also affect executable made with DMD and linked with MS linker? |
September 28, 2015 Re: Do users need to install VS runtime redistributable if linking with Microsoft linker? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ponce | On Monday, 28 September 2015 at 15:10:25 UTC, ponce wrote:
> On Tuesday, 22 September 2015 at 09:38:12 UTC, thedeemon wrote:
>> On Monday, 21 September 2015 at 15:00:24 UTC, ponce wrote:
>>> All in the title.
>>>
>>> DMD 64-bit links with the VS linker.
>>> Do users need to install the VS redistributable libraries?
>>
>> I think they don't.
>> Generated .exe seems to depend only on kernel32.dll and shell32.dll, i.e. things users already have.
>
> So I've released software with LDC 0.16.0-alpha4 Win64, and one user send me that http://i.imgur.com/xbU1VeS.png
>
> I thought it was only used for linking :(
>
> Does it also affect executable made with DMD and linked with MS linker?
Basically you executable is bound to whatever runtime you had installed when linking the thing. If those aren't installed on the end user's machine, you get that error. Pretty neat huh?
I had the same problem trying your Vibrant game.
I could not find out which redistributable I had to install (what version of VS did you have installed / on what version of windows are you?). I decided to install them all, but couldn't install the one for 2015 (due to Windows6.1-KB2999226-x64.msu). After trying some workarounds I gave up.
I am on windows 7 by the way.
|
September 28, 2015 Re: Do users need to install VS runtime redistributable if linking with Microsoft linker? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sebastiaan Koppe | On Monday, 28 September 2015 at 16:01:54 UTC, Sebastiaan Koppe wrote:
> On Monday, 28 September 2015 at 15:10:25 UTC, ponce wrote:
>> On Tuesday, 22 September 2015 at 09:38:12 UTC, thedeemon wrote:
>>> On Monday, 21 September 2015 at 15:00:24 UTC, ponce wrote:
>>>> All in the title.
>>>>
>>>> DMD 64-bit links with the VS linker.
>>>> Do users need to install the VS redistributable libraries?
>>>
>>> I think they don't.
>>> Generated .exe seems to depend only on kernel32.dll and shell32.dll, i.e. things users already have.
>>
>> So I've released software with LDC 0.16.0-alpha4 Win64, and one user send me that http://i.imgur.com/xbU1VeS.png
>>
>> I thought it was only used for linking :(
>>
>> Does it also affect executable made with DMD and linked with MS linker?
>
> Basically you executable is bound to whatever runtime you had installed when linking the thing. If those aren't installed on the end user's machine, you get that error. Pretty neat huh?
>
OK, but why does that need to happen? I don't get why does linking with MS linker implies a runtime dependency.
I thought we would be left out of these sort of problems when using D :(
|
September 28, 2015 Re: Do users need to install VS runtime redistributable if linking with Microsoft linker? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ponce | Maybe LDC uses dynamic linking by default and DMD static one, same as on Linux? |
September 28, 2015 Re: Do users need to install VS runtime redistributable if linking with Microsoft linker? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Dicebot | > Maybe LDC uses dynamic linking by default and DMD static one, same as on Linux? Yes, LDC does use dynamic linking by default (as MSVC iirc). Static linking can be enabled by providing the -DLINK_WITH_MSVCRT=OFF switch to the CMake command. > OK, but why does that need to happen? I don't get why does linking with MS linker > implies a runtime dependency. > I thought we would be left out of these sort of problems when using D :( druntime is a layer on top of a C runtime, as redoing all of that low-level and platform-specific stuff in D doesn't make a lot of sense. Then it's just a choice of linking dynamically or statically against it. Doesn't have anything to do with the used linker. |
September 28, 2015 Re: Do users need to install VS runtime redistributable if linking with Microsoft linker? | ||||
---|---|---|---|---|
| ||||
Posted in reply to ponce | On Monday, 28 September 2015 at 15:10:25 UTC, ponce wrote:
>
> Does it also affect executable made with DMD and linked with MS linker?
Just tested: no.
|
September 29, 2015 Re: Do users need to install VS runtime redistributable if linking with Microsoft linker? | ||||
---|---|---|---|---|
| ||||
Posted in reply to Sebastiaan Koppe | On Monday, 28 September 2015 at 16:01:54 UTC, Sebastiaan Koppe wrote:
> I could not find out which redistributable I had to install (what version of VS did you have installed / on what version of windows are you?). I decided to install them all, but couldn't install the one for 2015 (due to Windows6.1-KB2999226-x64.msu). After trying some workarounds I gave up.
>
You need the VC++ 2015 64-bit redistributable.
|
Copyright © 1999-2021 by the D Language Foundation