[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 02:50:11 +0200 |
On Tue, Aug 10, 2021 at 10:38 PM Bob Friesenhahn
<bfriesen@simple.dallas.tx.us> wrote:
>
> On Tue, 10 Aug 2021, Vincent Torri wrote:
> >>
> >> Perhaps better solution is use of -export-symbols.
> >
> > As I have said, the problem is not the lib itself. There is no problem
> > with the lib. The problem is with the binary : when I compile it,
> > there is no way to know if the library, that the binary uses, is a
> > static library or shared library (know == having a macro to
> > distinguish shared lib and static lib)
>
> This is a good point. For GraphicsMagick we just had to deal with it
> and provide an external way to know how the library was expected to
> have been compiled.
>
> This is fragile since it is possible/likely that both static and DLL
> are available at the same time and compiler will choose one of them
> according to its own rules, and especially if libtool is not used for
> linking against that library.
I'll for DLL to be chosen
thank you
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, 2021/08/11
- Re: Question about static and shared libraries and their usage in a binary on Windows in a autotools project, Vincent Torri, 2021/08/11