delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/12/02/10:37:40

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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: Thu, 2 Dec 2004 10:37:45 -0500
From: Christopher Faylor <cgf-no-personal-reply-please AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: MSVC-dll under cygwin
Message-ID: <20041202153745.GA29883@trixie.casa.cgf.cx>
Reply-To: cygwin AT cygwin DOT com
References: <000a01c4d883$eb5024f0$0200a8c0 AT mindcooler>
Mime-Version: 1.0
In-Reply-To: <000a01c4d883$eb5024f0$0200a8c0@mindcooler>
User-Agent: Mutt/1.4.1i

On Thu, Dec 02, 2004 at 04:30:56PM +0100, Mikael ?sberg wrote:
>Hello, I was under the impression that using a Cygwin-compiled DLL
>under MSVC was extremely difficult, if not impossible, but using a
>MSVC-compiled DLL with programs compiled under Cygwin is possible?  I
>have test program that first calls LoadLibrary() and then for each
>function in the DLL it wants to call I call GetProcAddress().  However,
>when I try to call any function the program segfaults (the function
>pointers are not NULL).  The same test program works if compiled using
>MSVC.  Am I mistaken that this should work or is there an error
>somewhere?

Since cygwin itself uses all sorts of non-cygwin dlls, it is a safe
assumption that it must be able to use non-cygwin dlls.

However, if you are using stdio from msvcrt, you may run into problems.

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019