questions about DLL's: .a, .def, and .dll

Igor Pechtchanski pechtcha@cs.nyu.edu
Fri Aug 27 20:19:00 GMT 2004


On Fri, 27 Aug 2004, Igor Pechtchanski wrote:

> On Fri, 27 Aug 2004, Oliver wrote:
>
> > Hi folks, I'm confused about the files that dllwrap
> > creates. On Unix (where I've been programming forever) all you
> > have to do is create a .so shared library. But dllwrap ends up
> > creating a .a file, a .def file, and a .dll file, yet I can
> > build a program that links to, e.g., mylib.dll, with only "-L. -lmylib",
> > *wihtout* having the .def or .a available. So where and when are the .a and
> > .def files needed?
>
> The newer versions of gcc apparently allow you to link directly to a .dll
                           ^/binutils
> file.  The .def and .a are needed for older versions of gcc, and possibly
                                                             ^/binutils
> for some other tools.
> [snip]
> 	Igor

-- 
				http://cs.nyu.edu/~pechtcha/
      |\      _,,,---,,_		pechtcha@cs.nyu.edu
ZZZzz /,`.-'`'    -.  ;-;;,_		igor@watson.ibm.com
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"Happiness lies in being privileged to work hard for long hours in doing
whatever you think is worth doing."  -- Dr. Jubal Harshaw

--
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/



More information about the Cygwin mailing list