Re: Creating static libraries for Windows

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



BRM wrote:
> 2) For those of you that are using the MSYS
> environment - is there any other way to create a
> static library using the Autotools under MSYS?

Perhaps `mingw-users@xxxxxxxxxxxxxxxxxxxxx', (preferred), or
`mingw-msys@xxxxxxxxxxxxxxxxxxxxx' would be better fora for
this discussion; (both are subscriber only lists).

When using MinGW as the compiler suite, under MSYS, you simply
create libraries as libSTUFF.a, then use the -Llibpath and -lSTUFF
switches in the gcc command, just as you would on *nix.  For a small
example of how I've done this, for a MinGW support library, see
http://prdownloads.sourceforge.net/mingw/mingw-execwrap-1.0.0.tar.gz?download

If you *must* use MSVC, then you must follow M$ convention for all
your Makefile commands, and would use the M$ `lib' command, to
create the libraries.  However, this scenario is probably less
common in an MSYS build environment, where MinGW -- a Win32 port
of GCC -- would be the preferred compiler suite.

HTH.
Keith.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux