| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Message-ID: | <000b01c1437f$4f852d00$0149a8c0@sknet01> |
| From: | "Stephen Dyke" <sk DOT ml AT btinternet DOT com> |
| To: | <cygwin AT cygwin DOT com> |
| Subject: | __imp_reent_data |
| Date: | Sat, 22 Sep 2001 16:57:41 +0100 |
| MIME-Version: | 1.0 |
| X-Priority: | 3 |
| X-MSMail-Priority: | Normal |
| X-Mailer: | Microsoft Outlook Express 6.00.2600.0000 |
| X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
Where is '__imp_reent_data' defined?
I'm trying to build a relocateable dll version of boehm's GC using
cygwin-1.3.3 and all latest packages (with src).
$ make
rm -f skgc.a
ar cr skgc.a *.o
ranlib skgc.a
echo '.section .idata$3' > dll_fixup.s
echo '.long 0,0,0,0,0' >> dll_fixup.s
as -o dll_fixup.o dll_fixup.s
gcc -c -o dll_init.o dll_init.c
echo EXPORTS > skgc.def
echo skgc_impure_ptr = _impure_ptr >> skgc.def
nm skgc.a | sed -n '/^........ [BCDRT] _/s/[^_]*_//p' >> skgc.def
dlltool \
--def skgc.def \
--dllname skgc.dll \
--output-exp skgc.exp \
--output-lib skgc_dll.a
echo "/* automatically generated by Makefile.DLLs */" > skgc_dll.c
echo "void *_impure_ptr;" >> skgc_dll.c
gcc -c -o skgc_dll.o skgc_dll.c
ld --dll -o skgc.dll \
-e _dll_entry AT 12 \
skgc.exp skgc.a skgc_dll.o \
dll_init.o dll_fixup.o \
\
-L/usr/lib/gcc-lib/i686-pc-cygwin/2.95.3-5 -L/usr/lib -L/usr/lib/w32
api -lgcc -lcygwin -lkernel32 -lgcc
dll_init.o(.text+0x4):dll_init.c: undefined reference to `__imp_reent_data'
make: *** [skgc.dll] Error 1
rm skgc.exp skgc.def skgc_dll.o skgc_dll.c
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |