[BUG] cygwin-1.3.3-2 -- making auto-import dlls

Jong B. Lee jbdoll@kepri.re.kr
Tue Sep 18 18:40:00 GMT 2001


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

-------------
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dll_c.tar.gz
Type: application/x-gzip
Size: 1700 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20010918/149bf09c/attachment.bin>


More information about the Cygwin mailing list