This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: building dll's under cygwin
- From: "Gerrit P. Haase" <freeweb at nyckelpiga dot de>
- To: Jean le Roux <jean at infosat dot net>
- Cc: cygwin at cygwin dot com
- Date: Thu, 10 Jan 2002 11:18:11 +0100
- Subject: Re: building dll's under cygwin
- Organization: convey Information Systems GmbH
- References: <20020110114624.A6156@infosat.net>
- Reply-to: "Gerrit P. Haase" <freeweb at nyckelpiga dot de>
Jean,
2002-01-10 11:15:36, du schriebst:
> 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
It is `-no-undefined' and also just `-version-info',
`-export-symbols' and so on, not `--xxx-xxx'.
> 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 ?
Gerrit
--
begin signature:
=^..^=
end
--
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/