This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: why is -L/usr/local/lib necessary?


> -----Original Message-----
> From: cygwin-owner On Behalf Of Dave Korn
> Sent: 14 December 2004 17:28


> 2)  You can't statically link against a .dll anyway.  You 
> statically link (at
> compile time) against .a files; you dynamically link (at 
> runtime) against .dll files.

  Minor correction:  you can in fact link against a dll, but it doesn't actually
link the function from the dll into your exe, it links a __imp__FunctioName
stub.  So it's the same as linking against the corresponding static import
library (libfoo.dll.a in this case) anyway.

    cheers, 
      DaveK
-- 
Can't think of a witty .sigline today....


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]