Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com Message-ID: <396C9A70.3F5A54D0@ece.gatech.edu> Date: Wed, 12 Jul 2000 12:18:56 -0400 From: Charles Wilson X-Mailer: Mozilla 4.7 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Horst Burmeister CC: cygwin AT sourceware DOT cygnus DOT com Subject: Re: still help needed regarding DLL for JNI References: <004101bfec19$55b31340$2a2b7a35 AT bln DOT rt DOT daimlerchrysler DOT com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Horst Burmeister wrote: > my problem: > Then I tried (as suggested by Carl Thompson, using cygwin1.1.2) to get the dll: > "gcc -Wl,--out-implib,libNative.import.a -shared -o libNative.dll theNativeMethod.o" > > This results in the following messages: > Creating library file: libNative.import.a (sounds good so far ;-) > bfd_close: libNative.import.a Invalid operation > collect2: ld returned 1 exit status > > I am really in despair! I am quite new to all this stuff. > I have no real experience, neither in C++ , nor NT programming. > So any suggestions are really welcome! > This is because the current version of ld.exe in binutils is broken w.r.t. --shared. I've posted a fix on the binutils mailing list, but (a) it hasn't yet been applied to cvs, and (b) even if it had been applied to binutils-cvs, the cygwin distribution of binutils doesn't include it yet. (a) is because there's an understandable delay in processing all the patches that get sent to the binutils mailing list. (b) is because (I think) everyone is waiting for Mumit to catch up on all his email and resume being the cygwin/mingw gcc/binutils guru. For now, if you need an updated ld.exe email me privately & I'll send you a copy. --Chuck -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com