X-Spam-Check-By: sourceware.org Message-ID: <84d4a6d50705011517u77d03a34m3fc1d97eeaa7cd31@mail.gmail.com> Date: Tue, 1 May 2007 17:17:47 -0500 From: "Pete Flugstad" To: cygwin AT cygwin DOT com Subject: Re: using Cygwin (-mno-cygwin) to JNI to a 3rd party DLL In-Reply-To: <4637A234.A44A5BCC@dessent.net> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <84d4a6d50705011311m24edaf7dw73f40a72bc4a750e AT mail DOT gmail DOT com> <4637A234 DOT A44A5BCC AT dessent DOT net> X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com On 5/1/07, Brian Dessent wrote: > You'll have to run this in a debugger to be sure, but I'd start looking > at calling convention clashes, i.e. stdcall vs cdecl. This should be a > function of the header files and how they declare prototypes. The thing that's odd is that without the 3rd party DLL present, everything works just fine. My JNI functions are called and work (just debug printouts in that case). Only when I actually call the 3rd party DLL (and obviously I'm linking against it), does it fail - and it fails before it even tries to call a function - during the loading phase. > This is not the right list. When using -mno-cygwin you aren't using any > of Cygwin, you're essentially cross compiling to MinGW. So their > mailing list would probably be the right place to ask. I'll go ask there. Thanks!!! > The gcc list is > *never* the right place to ask anything relating to debugging program > crashes, unless you can actually identify a specific compiler bug (which > it never is, 99.999% of the time.) Good to know. Thanks! Pete -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/