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

2021-08-10 Thread Vincent Torri
On Tue, Aug 10, 2021 at 10:38 PM Bob Friesenhahn 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

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

2021-08-10 Thread Vincent Torri
On Tue, Aug 10, 2021 at 11:19 PM Nick Bowler wrote: > > On 2021-08-10, Vincent Torri wrote: > [...] > > 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

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

2021-08-10 Thread Nick Bowler
On 2021-08-10, Vincent Torri wrote: [...] > 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 ==

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

2021-08-10 Thread Bob Friesenhahn
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,

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

2021-08-10 Thread Vincent Torri
On Tue, Aug 10, 2021 at 9:21 PM Roumen Petrov wrote: > > Hi Vincent, > > Sorry for top posting. > > Perhaps is not easy visible for manual ( > https://www.gnu.org/software/libtool/manual/html_node/Creating-object-files.html > ) use of conditional code. > In this case #ifdef PIC. > > Perhaps

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

2021-08-10 Thread Roumen Petrov
Hi Vincent, Sorry for top posting. Perhaps is not easy visible for manual ( https://www.gnu.org/software/libtool/manual/html_node/Creating-object-files.html ) use of conditional code. In this case #ifdef PIC. Perhaps better solution is use of -export-symbols. Vincent Torri wrote: Hello I