Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Date: Fri, 18 Apr 2003 17:46:05 -0400 From: Christopher Faylor To: cygwin AT cygwin DOT com Subject: Re: dll creation Message-ID: <20030418214605.GC27150@redhat.com> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: <3EA02548 DOT 8040308 AT nordrhein DOT de> <3EA060D7 DOT 2070903 AT nordrhein DOT de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3EA060D7.2070903@nordrhein.de> User-Agent: Mutt/1.4.1i On Fri, Apr 18, 2003 at 10:32:23PM +0200, Armin Diehl wrote: > >>If you're calling a cygwin DLL from a non-cygwin app, that just won't >>work. >Does that mean it will work if the main application is a cygwin linked >app ? (and what about dynamicly loading the dll via loadLibrary) Yes, of course it will work if the main application is a cygwin app. Since there are all sorts of DLLs in /usr/bin, you can be pretty sure that this will work. >>If your application is really just as simple as the above, you might >>want to investigate either using MinGW (www.mingw.org) or using the >>-mno-cygwin option to gcc. >no it is not ;-) I'm trying to use gcc in a dll. I think gcc will not >work with mingw. Dweui? Why do you think I'd suggest something that doesn't work. Again, of course it works. The cygwin and mingw compilers are very close to being the same thing. >I have to use a dll because the borland compiler i'm using uses a >different format for objects and can not link the objects generated by >gcc. I will try if it works if the main program is a cygwin one, than >my application could be in a dll. (Or the main program could be gcc >and my application is in a dll) Linking Borland objects with gcc objects is another matter entirely. There is no guarantee that this will work either. It sounds like you really want to be using mingw. cgf -- 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/