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: <000d01c060a9$fe8b85b0$4c3ca8c0@adacel.com.au> From: "Peter Tersteeg" To: References: <010401c06010$3099e870$4c3ca8c0 AT adacel DOT com DOT au> <20001207020546 DOT C13259 AT redhat DOT com> Subject: Re: Trouble accessing functions in cygwin1.dll Date: Fri, 8 Dec 2000 11:01:19 +1100 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-Mimeole: Produced By Microsoft MimeOLE V5.50.4133.2400 ----- Original Message ----- From: "Christopher Faylor" To: Sent: Thursday, 7 December 2000 18:05 Subject: Re: Trouble accessing functions in cygwin1.dll > On Thu, Dec 07, 2000 at 04:40:21PM +1100, Peter Tersteeg wrote: > >Hi, > > > >I'm trying to use cygwin in a VC++ project (not pleasant, but I don't have a > >choice) and I'm trying to access several functions using LoadLibrary and > >GetProcAddress. I've used assertions to check that they are found successfully, > >but at runtime the program crashes when calling any of these functions. > > > > It's not ok. The fact that the program crashes should be a mild hint that this > is so. > > You can't call cygwin from a VC++ program unless you really really know what > you're doing. And even then, I'm not too sure. > > cgf > I'm not sure that I understand this statement. My understanding of DLL's is that they run are basically a library which any windows based compiler should be able to link to. It should be irrelevant what compiler is used, so long as it supports the platform. Does this mean that I have to build and run under the bash shell? I'd prefer not to be constrained by this if I can help it. Thanks, Peter Tersteeg. -- Want to unsubscribe from this list? Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com