Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.programming > #6319
| From | ha <Henry_Albrecht@Safe-mail.net> |
|---|---|
| Newsgroups | comp.programming |
| Subject | Re: VSE2013: How to reduce exefile-size ? |
| Date | 2016-03-10 01:02 +0100 |
| Organization | albasani.net |
| Message-ID | <nbqdi2$98k$1@news.albasani.net> (permalink) |
| References | <nbdakf$85n$1@news.albasani.net> <nboh56$ob2$1@news.albasani.net> <451ef9a9-1ec9-4429-9929-199565ae1ad6@googlegroups.com> <nbqaal$405$1@news.albasani.net> <a3b5306d-4200-40a0-b752-a392ee5c6a4b@googlegroups.com> |
fir <profesor.fir@gmail.com> schrieb:
>> keyword: Visual C++ Redistributable Packages für Visual Studio 2013
>
> i think we both are talking of msvcrt.dll (or equivalent)
> but you seem to talking about static linking of such crt
> as 'disabling' crt - which (if so) is confusing and thus not
> proper i think
You can create your program in two ways:
link with static runtime libs.
Use either the /MT or the /MTd option to cl.exe. In this case, you will have no dependency on the msvcrt DLL, and therefore you will
not have to redistribute it. In Visual Studio, right click on the Project or Solution, Properties > C/C++->Code Generation->Runtime
library use Multithreaded and Multithreaded debug respectively. This is the easier way. The downside is that the resulting executable
is larger.
link with the dynamic C Runtime library.
You will use either the /MD or the /MDd option to cl.exe.
In Visual Studio, right click on the Project or Solution, Properties > C/C++->Code Generation->Runtime library use Multithreaded
Dynamic Link and Multithreaded Dynamic Link debug respectively. This results in a smaller EXE, but the downside is that you must
install the required MSVCRT when installing your application.
This is from this site:
http://stackoverflow.com/questions/1073509/should-i-redistribute-msvcrt-dll-with-my-application
So this is, what I am talking about.
> by switching-off/removing/disabling crt i personally mean
> removing the crt from the exe (in gcc like -nostdlib is doing
> that, c coding without that may be a bit harder (though probably not so much anyway))
The sourcecode is the same.
Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
VSE2013: How to reduce exefile-size ? ha <Henry_Albrecht@Safe-mail.net> - 2016-03-05 01:52 +0100
Re: VSE2013: How to reduce exefile-size ? fir <profesor.fir@gmail.com> - 2016-03-05 05:02 -0800
Re: VSE2013: How to reduce exefile-size ? JJ <jj4public@vfemail.net> - 2016-03-06 18:04 +0700
Re: VSE2013: How to reduce exefile-size ? ha <Henry_Albrecht@Safe-mail.net> - 2016-03-07 18:48 +0100
Re: VSE2013: How to reduce exefile-size ? BartC <bc@freeuk.com> - 2016-03-08 12:14 +0000
Re: VSE2013: How to reduce exefile-size ? fir <profesor.fir@gmail.com> - 2016-03-08 13:29 -0800
Re: VSE2013: How to reduce exefile-size ? ha <Henry_Albrecht@Safe-mail.net> - 2016-03-09 07:51 +0100
Re: VSE2013: How to reduce exefile-size ? fir <profesor.fir@gmail.com> - 2016-03-09 13:34 -0800
Re: VSE2013: How to reduce exefile-size ? ha <Henry_Albrecht@Safe-mail.net> - 2016-03-10 00:07 +0100
Re: VSE2013: How to reduce exefile-size ? fir <profesor.fir@gmail.com> - 2016-03-09 15:25 -0800
Re: VSE2013: How to reduce exefile-size ? ha <Henry_Albrecht@Safe-mail.net> - 2016-03-10 01:02 +0100
Re: VSE2013: How to reduce exefile-size ? fir <profesor.fir@gmail.com> - 2016-03-10 07:47 -0800
Re: VSE2013: How to reduce exefile-size ? Richard Heathfield <rjh@cpax.org.uk> - 2016-03-09 23:25 +0000
csiph-web