This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
building dll's under cygwin
- From: Jean le Roux <jean at infosat dot net>
- To: cygwin at cygwin dot com
- Date: Thu, 10 Jan 2002 11:46:24 +0200
- Subject: building dll's under cygwin
Hi all
Seems I've been on the receiving end of all the advice so far.. hope
this will change in the future :)
Until then.. here is the next piece of pain ;)
I use the autotools(all of them) to build my project. I've read the
whole of chapter 25 of the Autobook-1.3, and all I could find on
dll's in the faq and in this list's archives.. and I'm still stumped :(
Here is what my compiler tells me:
cd . \
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
/bin/sh ./config.status
creating config.h
config.h is unchanged
make all-recursive
make[1]: Entering directory `/cygdrive/e/projects/myproject'
Making all in libsrc
make[2]: Entering directory `/cygdrive/e/projects/myproject/libsrc'
/bin/sh ../libtool --mode=link c++ -g -O2 -o libpmfp.la -rpath /usr/local/lib --no-undefined --version-info 0:0:0 common.lo pmfp.lo pmfp_log.lo crypto.lo mckey.lo
libtool: link: warning: undefined symbols not allowed in i686-pc-cygwin shared libraries
rm -fr .libs/libpmfp.la .libs/libpmfp.* .libs/libpmfp.*
ar cru .libs/libpmfp.a common.o pmfp.o pmfp_log.o crypto.o mckey.o
ranlib .libs/libpmfp.a
creating libpmfp.la
(cd .libs && rm -f libpmfp.la && ln -s ../libpmfp.la libpmfp.la)
make[2]: Leaving directory `/cygdrive/e/projects/myproject/libsrc'
make[2]: Entering directory `/cygdrive/e/projects/myproject'
cd . \
&& CONFIG_FILES= CONFIG_HEADERS=config.h \
/bin/sh ./config.status
creating config.h
config.h is unchanged
make[2]: Leaving directory `/cygdrive/e/projects/myproject'
make[1]: Leaving directory `/cygdrive/e/projects/myproject'
Now, from what I understand, the --no-undefined switch should
pre-empt any " warning: undefined symbols ..." warnings.
I suspect if this is solved, then the dll will be created.
In my configure.in i do have AC_LIBTOOL_WIN32_DLL, which seems to be
the only major thing to look out for.
Anyone else had this problem before ?
thanx
--
Jean le Roux
Binary Entropy Catalyst
Cellular: 083 505 6443
I owe the public nothing.
-- J.P. Morgan
--
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/