This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Where can I get Cygwin 20.1b?
- To: Bradley Smith <brad2010 at hotmail dot com>
- Subject: Re: Where can I get Cygwin 20.1b?
- From: Carl Thompson <cet at carlthompson dot net>
- Date: Tue, 13 Jun 2000 16:28:50 -0700
- Cc: Cygwin List <cygwin at sourceware dot cygnus dot com>
- References: <20000613225357.25271.qmail@hotmail.com>
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