This is the mail archive of the
cygwin
mailing list for the Cygwin project.
questions about DLL's: .a, .def, and .dll
- From: Oliver <oliver dot schoenborn at utoronto dot ca>
- To: cygwin at cygwin dot com
- Date: Fri, 27 Aug 2004 15:43:32 +0000 (UTC)
- Subject: questions about DLL's: .a, .def, and .dll
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?
Also, I read in the various docs (dllhelpers etc) that you have to
compile the file that has DllMain using either "extern 'C'" around the
DllMain function, or make it a C file rather than a c++ file and compile
with gcc, yet it worked for me as a c++ file without the extern, is this
new behavior or is something going to blow up on me later?
Thanks,
Oliver
--
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/