On Windows, the RNAstructure executables can be linked dynamically or statically.
By default, static linking is used to simplify deployment, however dynamic linking
reduces the size each executables by about 6-7 MB  (e.g. Fold goes from 1400 KB to 7840 KB)

This document describes DLLs required for dynamic linking. These DLLs are required to be in the 
RNAstructure/exe folder or in %SYSTEMROOT% (or in any directory in the %PATH%).

The DLLs can be obtained from:

  /usr/x86_64-w64-mingw32/sys-root/mingw/bin  (for 64-bit versions)
  /usr/i686-w64-mingw32/sys-root/mingw/bin    (for 32-bit versions)

The above paths are based on the cygwin file-system. 
From the Windows perspective, it is necessary to prepend the path to the cygwin install folder.
For example, if Cygwin was installed to "C:\cygwin" these folders correspond to:

  C:\cygwin\usr\x86_64-w64-mingw32\sys-root\mingw\bin  (for 64-bit versions)
  C:\cygwin\usr\i686-w64-mingw32\sys-root\mingw\bin    (for 32-bit versions)

List of 64-bit DLLs:
  libgcc_s_seh-1.dll

  libstdc++-6.dll

  libgomp-1.dll       (for SMP programs)
  libwinpthread-1.dll (for SMP programs)

List of 32-bit DLLs:
  libgcc_s_sjlj-1.dll
  libstdc++-6.dll

More details:
  Executable dependencies can be listed using the ldd command, e.g. `ldd exe/Fold`
  Most dependencies are to the Windows system libraries, for example:
    ntdll.dll => /cygdrive/c/Windows/SYSTEM32/ntdll.dll (0x7fff246e0000)
    KERNEL32.DLL => /cygdrive/c/Windows/system32/KERNEL32.DLL (0x7fff23880000)
    KERNELBASE.dll => /cygdrive/c/Windows/system32/KERNELBASE.dll (0x7fff21c40000)
    msvcrt.dll => /cygdrive/c/Windows/system32/msvcrt.dll (0x7fff23c70000)
    ... etc
  Some dependencies are to the gcc and stdc++ libraries, provided by the compiler (e.g. Mingw-w64)
    libgcc_s_seh-1.dll => /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgcc_s_seh-1.dll (0x61440000)
    libstdc++-6.dll => /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libstdc++-6.dll (0x6fc40000)
  SMP Executables also require pthreads and OMP
    libwinpthread-1.dll => /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libwinpthread-1.dll (0x64940000)  
    libgomp-1.dll => /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libgomp-1.dll (0x63600000)
