This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: building dll's under cygwin


 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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]