This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Converting Dynamic Libraries
- From: "Sisyphus" <kalinabears at iinet dot net dot au>
- To: "Matthias David Siebler" <matthias at datapower dot com>,<gcc-help at gcc dot gnu dot org>
- Date: Fri, 1 Aug 2003 18:32:17 +1000
- Subject: Re: Converting Dynamic Libraries
- References: <3F26B3FA.2090808@datapower.com>
----- Original Message -----
From: "Matthias David Siebler" <matthias@datapower.com>
To: <gcc-help@gcc.gnu.org>
Sent: Wednesday, July 30, 2003 3:50 AM
Subject: Converting Dynamic Libraries
>
> Hello:
>
> I have a debate about whether it is possible to convert a dynamic
> library (e.g. libm.so) into a static library (i.e. libm.a)
>
> I would argue that this is impossible since the act of creating a shared
> library strips out the necessary information required to create a static
> library.
>
> Am I correct?
>
With the msvc compiler on win32, it's simple to create a static lib from a
shared lib, if we have the '.def' file.
I believe it's also possible to create a def file from the shared lib if we
don't have it.
I would imagine the same to be possible with gcc on windows, and with gcc on
other platforms, too ..... but I don't really know.
Cheers,
Rob