This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
[BUG] cygwin-1.3.3-2 -- making auto-import dlls
- To: <cygwin at cygwin dot com>
- Subject: [BUG] cygwin-1.3.3-2 -- making auto-import dlls
- From: "Jong B. Lee" <jbdoll at kepri dot re dot kr>
- Date: Wed, 19 Sep 2001 10:38:24 +0900
Dear cygwin developers,
Attached file is a part of Charles Wilson's dllhelpers-0.2.7 (originally from Mumit Khan's).
This dllhelpers used to be introduced as an example for those people who ask how to build and use dlls on cygwin, and its' good.
It fails to run on cygwin 1.3.3-2 with a heap error.
C++/F77 cases work good. Only C examples fail to execute.
This error does not occur on cygwin-1.3.2-1.
Following is the error message.
-------------
OS : wind98, second edition
cygwin1.dll : 1.3.3.-2
-------------
$ make
gcc -c -I. -g -Wall -o cdll.o cdll.c
gcc -shared -Wl,--out-implib=libcdll.dll.a \
-o cygcdll.dll cdll.o -Wl,--export-all-symbols -Wl,-enable-auto-image-base -Wl,
--enable-auto-import
Creating library file: libcdll.dll.a
gcc -c -I. -g -Wall -o usedll.o usedll.c
gcc -o usedll.exe -g -Wall -Wl,--enable-auto-import usedll.o -L./ -lcdll
Warning: resolving _dll_global_int_var by linking to __imp__dll_global_int_var (
auto-import)
$ ./usedll.exe
m.AllocationBase 0x61100000, m.BaseAddress 0x614E0000, m.RegionSize 0x20000, m.S
tate 0x10000
C:\TOOLS\CYGWIN\TMP\USEDLL.EXE: *** Couldn't reserve space for cygwin's heap (0x
614E0000 <0x8499A000>) in child, Win32 error 6
-------------
dll_c.tar.gz
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/