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

2004-08-28 Thread Reini Urban
Oliver schrieb: Secondly, the resultant DLL will be linkable from a VC++ program, but the C++ functions in it will not be accessible from code compiled with VC++. Of course, the usual c++ name mangling incompatibilities. And there comes the .def file to help. You can define your needed aliases

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

2004-08-27 Thread Oliver
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

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

2004-08-27 Thread Igor Pechtchanski
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

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

2004-08-27 Thread Igor Pechtchanski
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

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

2004-08-27 Thread Oliver
Igor Pechtchanski pechtcha at cs.nyu.edu writes: On Fri, 27 Aug 2004, Oliver wrote: 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

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

2004-08-27 Thread Oliver
Igor Pechtchanski pechtcha at cs.nyu.edu writes: The newer versions of gcc apparently allow you to link directly to a .dll file. The .def and .a are needed for older versions of gcc, and possibly for some other tools. [...] The reason you want an 'extern C' for DLL functions in general

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

2004-08-27 Thread Igor Pechtchanski
On Fri, 27 Aug 2004, Oliver wrote: Igor Pechtchanski pechtcha at cs.nyu.edu writes: The newer versions of gcc apparently allow you to link directly to a .dll file. The .def and .a are needed for older versions of gcc, and possibly for some other tools. [...] The reason you want

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

2004-08-27 Thread Oliver
Secondly, the resultant DLL will be linkable from a VC++ program, but the C++ functions in it will not be accessible from code compiled with VC++. Of course, the usual c++ name mangling incompatibilities. Thanks for your help! Oliver -- Unsubscribe info: