I was under the impression that the c++ standard library ABIs (?) were such 
that static linking was a no-no. did that change?



>________________________________
> From: Ruben Van Boxem <[email protected]>
>To: "[email protected]" 
><[email protected]> 
>Sent: Monday, January 20, 2014 6:15 AM
>Subject: Re: [Mingw-w64-public] What to Download?
> 
>
>
>2014/1/20 Baruch Burstein <[email protected]>
>
>On Mon, Jan 20, 2014 at 2:58 PM, lh_mouse <[email protected]> wrote:
>>
>>MinGW uses MSVCRT.DLL which shipps with Windows XP so there is no additional 
>>CRT DLL needed to redistribute.
>>>
>>
>>
>>If MinGW64-compiled executables use MSVCRT.DLL as a runtime, then what do 
>>they use libgcc.dll for? Isn't it also just a c runtime library?
>
>
>Yes and no, it contains functions that GCC internally generates calls to for 
>various reasons (math, exceptions, memory management for certain language 
>features...). You can link it statically by using -static-libgcc.
>
> 
>>But you still have to redistribute the libgcc DLL(libgcc_s.dll) and libstdc++ 
>>DLL(libstdc++-6.dll). You can get these files from /mingwXX/bin directory, 
>>where XX is 32 or 64.
>>>
>>
>>
>>Is there an option to statically link the libgcc/libstdc++-6, so as not to 
>>have to distribute the .dll?
>>
>
>
>Either -static, which links everything statically if available, or 
>-static-libgcc -static-libstdc++, which only uses the static versions of the 
>two runtime libraries.
>
>
>Cheers,
>
>
>Ruben
>
> 
>
>
>>-- 
>>
>>˙uʍop-ǝpısdn sı ɹoʇıuoɯ ɹnoʎ 'sıɥʇ pɐǝɹ uɐɔ noʎ ɟı
>>------------------------------------------------------------------------------
>>CenturyLink Cloud: The Leader in Enterprise Cloud Services.
>>Learn Why More Businesses Are Choosing CenturyLink Cloud For
>>Critical Workloads, Development Environments & Everything In Between.
>>Get a Quote or Start a Free Trial Today.
>>http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
>>_______________________________________________
>>Mingw-w64-public mailing list
>>[email protected]
>>https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>>
>>
>
>
>
>------------------------------------------------------------------------------
>CenturyLink Cloud: The Leader in Enterprise Cloud Services.
>Learn Why More Businesses Are Choosing CenturyLink Cloud For
>Critical Workloads, Development Environments & Everything In Between.
>Get a Quote or Start a Free Trial Today. 
>http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
>
>_______________________________________________
>Mingw-w64-public mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
>
>
>
------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to