Re: Question about static and shared libraries and their usage in a binary on Windows in a autotools project

Bob Friesenhahn <[email protected]>
Newsgroups gmane.comp.gnu.libtool.general
Message-ID <[email protected]>
On Wed, 11 Aug 2021, Alexei Podtelezhnikov 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.

That makes sense.  The key issue is if the consumer of the header file 
wants/needs to have dllimport/dllexport enabled.

Bob
-- 
Bob Friesenhahn
[email protected], http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
Public Key,     http://www.simplesystems.org/users/bfriesen/public-key.txt
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.