[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: libtool + MinGW

From: Brian Dessent
Subject: Re: libtool + MinGW
Date: Fri, 09 Jun 2006 16:03:25 -0700

Brendon Costa wrote:

> Would someone be able to have a look at the script file and let me know
> what i am doing wrong?

I'm not sure why you are getting the link errors about duplicated
symbols, but your testcase in general is not doing what you think it's
doing.  You'll note that there is not a DLL created anywhere, and this
is because you didn't use -no-undefined.

On win32 systems this is required to generate shared libraries, owing to
the fact that the windows dynamic loader cannot do "lazy" linking -- all
referenced symbols must be resolved at link-time.  Without this flag
libtool cannot assume that you've met this condition, and so it cannot
do anything but create a static library, even if it was told to make a
shared lib.  The message "libtool: link: warning: undefined symbols not
allowed in i686-pc-mingw32 shared libraries" when creating libShared and
libLTDLopened indicates this.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]