Can I create a DLL with g++?
Wed Mar 31 19:45:00 GMT 1999
> I just started to use cygwin development tools.
> I appreciate the developers provided these tools working well.
> But I have a question about DLL, how can I create a DLL
> with g++? How to use the DLL which consists of c++ objects from
> main program.
See http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ and scan
for "How to make DLLs using EGCS". I've just updated my dllhelpers
package to version 0.2.5 that provides examples for C, C++ and F77
DLLs (sorry, not ObjC yet).
Be warned however that the design of MS DLLs makes it extremely hard
to create DLLs from C++ code in some cases (especially when you're
using exceptions, RTTI and a few other recent C++ features in a DLL).
For most "normal" code, it should work just fine. Cygwin runtime itself
is a C++ DLL.
Want to unsubscribe from this list?
Send a message to email@example.com
More information about the Cygwin