delorie.com/archives/browse.cgi | search |
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: | Mon, 11 Jul 2005 14:46:25 -0700 (PDT) |
Message-Id: | <200507112146.j6BLkPWb005944@tremex.ucdavis.edu> |
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++? |
From: | "Yu-Cheng Chou" <cycchou AT ucdavis DOT edu> |
X-Errors-To: | cycchou AT magenta DOT ucdavis DOT edu |
X-User-Agent: | Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 1.0.3705; .NET CLR 1.1.4322) |
X-IsSubscribed: | yes |
> > > I downloaded the cygload package, set up the MSVCDir for my system, > > > and > > > used c:\cygwin\bin\make to run the Makefile. The msvc-cygload.exe was > > > successfully created. However, when I run msvc-cygload.exe, error > > > messages listed below occurred. > > 1. You're running cygwin 1.5.18? > > 2. What version of Visual Studio are you using? > > 3. Did you try "cygload -v" to see how far it got before it crashed? > I was running 1.5.17 originally. The msvc-cygload.exe works for cygwin > 1.5.18. > I used Microsoft Visual Studio .NET 2003. > I think the error caused by the older version of cygwin. > > Thanks 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. Connecting to cygwin... Warning! Stack base is 00130000. padding ends at 0012FFC0. Delta is 64. Stack variables could be overwritten! Loading module.dll... Initializing cygwin... GetProcAddress(cygwin_dll_init): The specified procedure could not be found. (127) Is it because I created module.dll in the wrong way? How to fix it? Thanks Here is the module.c //module.c #include <stdio.h> #include <windows.h> /* __declspec(dllexport) */ int foo(int arg){ printf("foo() called\n"); return (arg * 2); } -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |