Re: Why my app require MSVCR120.dll?

2017-01-18 Thread Suliman via Digitalmars-d-learn

On Wednesday, 18 January 2017 at 09:54:43 UTC, Suliman wrote:

On Friday, 6 November 2015 at 18:34:45 UTC, Cauterite wrote:

On Friday, 6 November 2015 at 13:16:46 UTC, Suliman wrote:
On Windows 7 it's work fine. On Windows 10 (clean install) 
it's do not start and require MSVCR120.dll


D doesn't make particularly heavy use of the C runtime, so 
there's a good chance you can link against a different C 
runtime DLL — preferably one that's always available by 
default like msvcrt.dll.


How can I link with msvcrt.dll ?


Or maybe there is way to statically link with MSVCR120.dll?


Re: Why my app require MSVCR120.dll?

2017-01-18 Thread Suliman via Digitalmars-d-learn

On Friday, 6 November 2015 at 18:34:45 UTC, Cauterite wrote:

On Friday, 6 November 2015 at 13:16:46 UTC, Suliman wrote:
On Windows 7 it's work fine. On Windows 10 (clean install) 
it's do not start and require MSVCR120.dll


D doesn't make particularly heavy use of the C runtime, so 
there's a good chance you can link against a different C 
runtime DLL — preferably one that's always available by default 
like msvcrt.dll.


How can I link with msvcrt.dll ?


Re: Why my app require MSVCR120.dll?

2015-11-08 Thread thedeemon via Digitalmars-d-learn

On Sunday, 8 November 2015 at 05:11:50 UTC, suliman wrote:

On Sunday, 8 November 2015 at 04:50:49 UTC, thedeemon wrote:

On Saturday, 7 November 2015 at 10:03:58 UTC, Suliman wrote:


I am using DMD.


-m64 or -m32mscoff ?


Without any keys. I use dub for building


I suspect your issue is caused by botan library on which vibe-d 
depends:

http://code.dlang.org/packages/botan
It says it needs MS linker on Windows and so most probably 
depends on MSVC runtime.
Usually when you build something with DMD without -m64 or 
-m32mscoff it makes a binary without such dependencies, it uses 
its own C library (snn.lib) statically linked.


Re: Why my app require MSVCR120.dll?

2015-11-07 Thread Suliman via Digitalmars-d-learn

On Friday, 6 November 2015 at 18:39:49 UTC, ponce wrote:

On Friday, 6 November 2015 at 13:16:46 UTC, Suliman wrote:

I wrote Application in D. That use next components:

"colorize": ">=1.0.5",
"ddbc": ">=0.2.11",
"vibe-d": "~>0.7.26"

On Windows 7 it's work fine. On Windows 10 (clean install) 
it's do not start and require MSVCR120.dll And I can't 
understand what component is pulling this lib as dependence. 
What would be if I am try to port my App to Linux?


What compiler are you using?


I am using DMD. The software was compiled on Windows 7. On 
Windows 10 I just tried to run it.


Is there any way to drop down C-runtime part to get App more 
portable or maybe to statically link with C lib to be sure that 
my App will work everywhere?


Re: Why my app require MSVCR120.dll?

2015-11-07 Thread thedeemon via Digitalmars-d-learn

On Saturday, 7 November 2015 at 10:03:58 UTC, Suliman wrote:


I am using DMD.


-m64 or -m32mscoff ?




Re: Why my app require MSVCR120.dll?

2015-11-07 Thread suliman via Digitalmars-d-learn

On Sunday, 8 November 2015 at 04:50:49 UTC, thedeemon wrote:

On Saturday, 7 November 2015 at 10:03:58 UTC, Suliman wrote:


I am using DMD.


-m64 or -m32mscoff ?


Without any keys. I use dub for building



Re: Why my app require MSVCR120.dll?

2015-11-06 Thread Suliman via Digitalmars-d-learn

On Friday, 6 November 2015 at 13:50:56 UTC, Kagamin wrote:
MSVCR is a C runtime. On Linux it will depend on a C runtime 
too.


But which part of my App depend on C runtime?


Re: Why my app require MSVCR120.dll?

2015-11-06 Thread Benjamin Thaut via Digitalmars-d-learn

On Friday, 6 November 2015 at 16:21:35 UTC, Suliman wrote:

On Friday, 6 November 2015 at 13:50:56 UTC, Kagamin wrote:
MSVCR is a C runtime. On Linux it will depend on a C runtime 
too.


But which part of my App depend on C runtime?


All of it. Phobos and druntime use the C runtime, that means the 
language itself depends on the C runtime.


Re: Why my app require MSVCR120.dll?

2015-11-06 Thread Timo Sintonen via Digitalmars-d-learn

On Friday, 6 November 2015 at 16:21:35 UTC, Suliman wrote:

On Friday, 6 November 2015 at 13:50:56 UTC, Kagamin wrote:
MSVCR is a C runtime. On Linux it will depend on a C runtime 
too.


But which part of my App depend on C runtime?


I have an early draft to explain the libraries here:
https://bitbucket.org/timosi/minlibd/wiki/libc_vs_libgcc
It is the Linux point of view but the basics are the same.

It would be hard to write generic patterns that describe all 
possible language features for all possible target systems. It is 
easier to put them into a separate library that is common for all 
apps. Some simple things are math with mixed types and fp math, 
more complex things are for example thread and exception handling.




Why my app require MSVCR120.dll?

2015-11-06 Thread Suliman via Digitalmars-d-learn

I wrote Application in D. That use next components:

"colorize": ">=1.0.5",
"ddbc": ">=0.2.11",
"vibe-d": "~>0.7.26"

On Windows 7 it's work fine. On Windows 10 (clean install) it's 
do not start and require MSVCR120.dll And I can't understand what 
component is pulling this lib as dependence. What would be if I 
am try to port my App to Linux?


Re: Why my app require MSVCR120.dll?

2015-11-06 Thread Kagamin via Digitalmars-d-learn

MSVCR is a C runtime. On Linux it will depend on a C runtime too.


Re: Why my app require MSVCR120.dll?

2015-11-06 Thread ponce via Digitalmars-d-learn

On Friday, 6 November 2015 at 13:16:46 UTC, Suliman wrote:

I wrote Application in D. That use next components:

"colorize": ">=1.0.5",
"ddbc": ">=0.2.11",
"vibe-d": "~>0.7.26"

On Windows 7 it's work fine. On Windows 10 (clean install) it's 
do not start and require MSVCR120.dll And I can't understand 
what component is pulling this lib as dependence. What would be 
if I am try to port my App to Linux?


What compiler are you using?


Re: Why my app require MSVCR120.dll?

2015-11-06 Thread Cauterite via Digitalmars-d-learn

On Friday, 6 November 2015 at 13:16:46 UTC, Suliman wrote:
On Windows 7 it's work fine. On Windows 10 (clean install) it's 
do not start and require MSVCR120.dll


D doesn't make particularly heavy use of the C runtime, so 
there's a good chance you can link against a different C runtime 
DLL — preferably one that's always available by default like 
msvcrt.dll.


However I'd start by determining why it works fine on 7 and not 
on 10. It could be that MSVCR120.dll is in your library search 
path on your Win7 system for some reason, or perhaps the compiler 
is somehow choosing to link against a different runtime when 
compiling on Windows 7.


If you don't already have tools to inspect this stuff, PeStudio ( 
https://www.winitor.com/ ) will be helpful — it can tell you all 
the load-time dynamic linkage for a given executable (among other 
things).