[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Question about static and shared libraries and their usage in a bina
From: |
Vincent Torri |
Subject: |
Re: Question about static and shared libraries and their usage in a binary on Windows in a autotools project |
Date: |
Wed, 11 Aug 2021 20:46:15 +0200 |
On Wed, Aug 11, 2021 at 3:44 PM Alexei Podtelezhnikov
<apodtele@gmail.com> wrote:
>
>
>
> >> And as I prefer DLL compared to static lib, I know what to do :-)
> >
> > I have the distinct impression that static libraries are rarely used under
> > Windows any more.
>
> Perhaps I am off base here. Isn’t this why DLL comes paired with a LIB
> wrapper, while static is just LIB. VC links with LIB regardless.
Visual Studio uses indeed .lib by default for the import library (what
you call the lib wrapper) and for the static library.
libtool, meson and cmake (not sure for cmake) are using .dll.a for the
import lib
Note that having an import lib is not necessary, it's perfectly
possible to link against the DLL. The GNU linker allows this. See
https://sourceware.org/binutils/docs/ld/WIN32.html, section "direct
linking to a DLL" for more information.
Vincent Torri
- Question about static and shared libraries and their usage in a binary on Windows in a autotools project, Vincent Torri, 2021/08/09
- Re: Question about static and shared libraries and their usage in a binary on Windows in a autotools project, Roumen Petrov, 2021/08/10
- Re: Question about static and shared libraries and their usage in a binary on Windows in a autotools project, Vincent Torri, 2021/08/10
- Re: Question about static and shared libraries and their usage in a binary on Windows in a autotools project, Nick Bowler, 2021/08/10
- Re: Question about static and shared libraries and their usage in a binary on Windows in a autotools project, Vincent Torri, 2021/08/10
- Re: Question about static and shared libraries and their usage in a binary on Windows in a autotools project, Bob Friesenhahn, 2021/08/11
- Re: Question about static and shared libraries and their usage in a binary on Windows in a autotools project, Alexei Podtelezhnikov, 2021/08/11
- Re: Question about static and shared libraries and their usage in a binary on Windows in a autotools project, Bob Friesenhahn, 2021/08/11
- Re: Question about static and shared libraries and their usage in a binary on Windows in a autotools project,
Vincent Torri <=
- Re: Question about static and shared libraries and their usage in a binary on Windows in a autotools project, Vincent Torri, 2021/08/11