Where can I get Cygwin 20.1b?

Carl Thompson cet@carlthompson.net
Tue Jun 13 16:28:00 GMT 2000

Bradley Smith wrote:
> I'm trying to make a ".dll" so that I can run the JNI and interface
> some C++ code with some Java code...
> Here is the site I found some code :
> http://www.xraylith.wisc.edu/~khan/software/gnu-win32/dllhelpers.html

With newer versions of GCC (and Cygwin) you can create DLLs much more easily
without the need for dllhelpers.  You would use something like

   gcc -Wl,--out-implib,libtest.import.a -shared -o test.dll test.o

This would create "test.dll" with from the object file "test.o" .  It will
also create an import library for the DLL (libtest.import.a).

(Of course, you still need to add the prefixes "__declspec(dllexport)" and
"__declspec(dllimport)" to your headers as needed.)

To use the new easy method, you need a newer version of GCC, not EGCS.  If
you are developing an application that uses the Cygwin DLL, the latest
version available from http://sourceware.cygnus.com/cygwin should work fine
for you.  If you need to create strictly Windows applications / DLLs without
any Unix compatibilty stuff, you can grab an updated version of b20.1 from
my site at http://www.carlthompson.net/cygwin .  I know it works to build
DLLs because I use it myself.

> ...

> thanks
> -Brian

Hope this helps,
Carl Thompson

Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

More information about the Cygwin mailing list