delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/07/11/23:44:36

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
Message-ID: <42D33CA2.471DD894@dessent.net>
Date: Mon, 11 Jul 2005 20:44:34 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Re: How to add 4K of scratch space at the bottom of the stack using C instead of C++?
References: <200507112146 DOT j6BLkPWb005944 AT tremex DOT ucdavis DOT edu>
X-Spam-Report: -5.9/5.0 ---- Start SpamAssassin results * -3.3 ALL_TRUSTED Did not pass through any untrusted hosts * -2.6 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] * 0.0 AWL AWL: From: address is in the auto white-list ---- End SpamAssassin results
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Yu-Cheng Chou wrote:

> I have module.dll that was created by using command line "gcc -shared -o
> module.dll module.c" in cygwin.
> When I run "msvc-cygload -v -cygwin module.dll" in cygwin, error messages
> listed below occurred.

As has been already pointed out, you have to load cygwin1.dll first,
initialize it, and then load your DLL.  The whole cygload thing is for
cygwin1.dll only, it will not work for anything else.  After the Cygwin
DLL has been loaded and initialized you should be able to load your DLL
that depends on the Cygwin DLL normally, without any special procedure. 
If you try to load your DLL directly Cygwin will not be initialized
properly, and if you try to locate the Cygwin initialization routine in
your DLL it will fail (because it exists only in the Cygwin DLL.)

Brian

--
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