public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Mirko Vukovic" <mirko.vukovic@gmail.com>
To: cygwin@cygwin.com
Subject: Re: how to build gsl dll
Date: Mon, 18 Feb 2008 01:12:00 -0000	[thread overview]
Message-ID: <d990efca0802171650p7a9c70afvec4ce80b798eafa2@mail.gmail.com> (raw)
In-Reply-To: <47B888D6.40037BBA@dessent.net>

On Sun, Feb 17, 2008 at 2:19 PM, Brian Dessent <brian@dessent.net> wrote:
> Mirko Vukovic wrote:
>
>  > I am trying to build a dll for gsl.  I want to link it to clisp.
>
>  Why?  The Cygwin gsl packages already contains everything you need,
>  including both shared and static versions.  Install the 'gsl' package
>  for the runtime files (the DLL) and install 'gsl-devel' for the
>  developer files (headers, import library, static library, libtool
>  library.)  You don't have to do anything.
>
>
>  > On the other hand the gsl executable contains the *.a, *.dll.a and
>  > *.la files. Is there a way to convert them to the dll.a
>
>  That doesn't make any sense.  There is no need to convert anything, not
>  that that's even possible.
>
>
>  > Frankly, I started dealing with libraries only about a week ago, and
>  > while I understand the .a, .so, .dll types (I think), I'm not sure
>  > about dll.a and .la.
>
>  For a package 'foo' cygfoo-n.dll is the shared library, it goes in
>  /usr/bin since it must be in the PATH.  This is the only file that is
>  actually used at runtime[1], as opposed to link time.  n is the ABI
>  version, if present.  libfoo.dll.a is the import library for
>  cygfoo-n.dll and it goes in /usr/lib.  An import library is just an aide
>  for the linker, it contains no actual code.  libfoo.a is the static
>  version of the library, and also goes in /usr/lib.  Sometimes import
>  libraries are also named libfoo.a too but this practice is discouraged,
>  it's mostly legacy things like all the w32api import libs that are still
>  named this way.  Import libraries can also be renamed as foo.lib if they
>  are to be used by the MS toolchain.  libfoo.la is the libtool library,
>  it's just a text file that describes aspects of the library and is used
>  by libtool if you use that to link.
>
>  Brian
>
>  [1] Okay technically the libtool .la file could be read at runtime if
>  the library is dlopened with libltdl, but that's probably not relevant
>  here.
>

Thank you.  I found it: cyggsl-0.dll, cyggslcblas-0.dll in /usr/bin.
Thank you very much for the explanation.

Mirko
>  --
>  Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
>  Problem reports:       http://cygwin.com/problems.html
>  Documentation:         http://cygwin.com/docs.html
>  FAQ:                   http://cygwin.com/faq/
>
>

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

  reply	other threads:[~2008-02-18  0:50 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-17 20:49 Mirko Vukovic
2008-02-17 22:18 ` Brian Dessent
2008-02-18  1:12   ` Mirko Vukovic [this message]
2008-02-18 17:04 ` Reini Urban
2008-02-18 17:58   ` Mirko Vukovic
2008-02-18 22:21     ` Reini Urban
2008-02-18 22:47       ` [cffi-devel] " Mirko Vukovic
2008-02-19  1:57       ` Luís Oliveira
2008-02-19 20:43         ` Mirko Vukovic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=d990efca0802171650p7a9c70afvec4ce80b798eafa2@mail.gmail.com \
    --to=mirko.vukovic@gmail.com \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).