This is the mail archive of the cygwin@sources.redhat.com 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]

Re: Cygwin lib files


DJ Delorie wrote:
> 
> > It ocurred to me that, if there were a .lib file for the cygwin dll,
> > that it could be linked in with and used by VS6 exes that were
> > compiled using the cygwin headers.
> 
> Cygwin is more than just a library.  You can't build cygwin programs
> with MSVC because MSVC will use the MS runtime; you need to use gcc to
> use the cygwin runtime.  Plus, cygwin isn't a .lib and probably never
> will be a .lib.  It's a .dll.
> 

But, that doesn't mean you couldn't use the MSVC utilities to create an
import library named CYGWIN.LIB if you want to go to the trouble and
there will be problems giving you trouble I would assume.  Note there
are static items also in libcygwin.a and those static items will need to
exist in your CYGWIN.LIB.

Now, using the CYGWIN.LIB will be a different challenge and you'll have
to manually do the linking to avoid MSVC standard includes and
libraries.

Earnie.

_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple


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