public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Confusion about building dlls, g++ seems to do it right, but do I need "dlltool"?
@ 2001-09-06 14:24 Karr, David
  0 siblings, 0 replies; only message in thread
From: Karr, David @ 2001-09-06 14:24 UTC (permalink / raw)
  To: 'cygwin@cygwin.com'

I'm a little confused about the process of building and using dlls in
Cygwin, as opposed to Linux.  Most of my C/C++ experience has been on
Solaris.

I have a little test application and Makefile.  It builds a "shared object",
and then links an executable which references the shared object.  This
builds and runs on Linux and Cygwin.  The only difference between the two is
some minor conditional code in the Makefile which needs to know the file
extent of "shared objects" and "executables".  Otherwise, the "g++" lines
are identical.  I let "g++" worry about the details of building a shared
library.

All I produce on Cygwin is the dll and the exe.  I don't produce a ".def",
".exp", or ".lib", which I might create with "dlltool".  The executable
referencing my dll (seemingly) has no trouble loading the dll at runtime and
using the code in the dll.

So in what circumstances would I need to use "dlltool" to build these other
things?

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2001-09-06 14:24 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-09-06 14:24 Confusion about building dlls, g++ seems to do it right, but do I need "dlltool"? Karr, David

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).