Re: [code][textadept] NIGHTLY executables on Win32 are static

From: Mitchell <>
Date: Sat, 21 Apr 2018 23:03:42 -0400 (EDT)

Hi Gabriel,

On Tue, 10 Apr 2018, Gabriel Dubatti wrote:

> Hi Mitchell and Peter,
> El 10/04/2018 a las 16:47, Mitchell escribió:
>> Hi Peter,
>> On Tue, 10 Apr 2018, Peter Rolf wrote:
>>> Am 2018-04-10 um 20:05 schrieb Mitchell:
>>>> Hi Peter,
>>>> On Tue, 10 Apr 2018, Peter Rolf wrote:
>>>>> Hi Mitchell,
>>>>> just cross compiled the source version from 07.04.18 and it works fine
>>>>> (textadept.exe, 1.8MB). I noticed that the Win32 NIGHTLY binaries from
>>>>> your site are still static. Sorry, didn't see it last time I reported
>>>>> back.
>>>> What do you mean by static? I downloaded the latest Win32 nightly and it
>>>> was for last night (9 April 2018).
>>> Static means, that all libraries are part of the executable (size of
>>> textadept.exe is 16.9MB instead of 1.8MB). Currently you have the
>>> libraries (*.dll) and four static executables (which don't need or use
>>> the *.dll files).
>> Oh, the nightlies actually are built with debugging symbols, which bloats
>> up the size enormously, but can help with crash backtraces or
>> user-initiated gdb sessions. The DLLs are not statically linked with the
>> exes. (I just tried moving them and running Textadept; I got a "dll not
>> found" type of error.)
>> Cheers,
>> Mitchell
> I have to add "libwinpthread-1.dll" when compiling for win32.

I think these kinds of things depend on the toolchain installed and even its version. For example, my old mingw32 toolchain was based on gcc 4.2 and did not recognize the "-static-libstdc++" flag, while my newer toolchain based on mingw-w64 3.x and gcc 5.4 recognizes that flag and does not require the "libwinpthread.dll". Perhaps your toolchain is based on something more recent.

Either way, this is good information for anyone else attempting to cross-compile for win32. Thanks for sharing.


> Cheers,
> Gabriel


You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Sat 21 Apr 2018 - 23:03:42 EDT

This archive was generated by hypermail 2.2.0 : Sun 22 Apr 2018 - 06:27:23 EDT