gnustep-dev
[Top][All Lists]
Advanced

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

Re: GNUstep + libicu on Windows


From: Richard Frith-Macdonald
Subject: Re: GNUstep + libicu on Windows
Date: Sun, 6 Feb 2011 19:44:31 +0000

On 6 Feb 2011, at 16:17, Stefan Bidi wrote:

> On Sun, Feb 6, 2011 at 8:15 AM, Owen Shepherd <address@hidden> wrote:
> 
> On 6 Feb 2011, at 07:01, Richard Frith-Macdonald wrote:
> 
>> 
>> On 6 Feb 2011, at 07:34, Richard Frith-Macdonald wrote:
>> 
>>> Thanks, that builds and installs nicely.
>>> But it seems the linker doesn't find it for some reason. 
>>> When building base I'm getting 'ld.exe cannot find -licui18n' even though I 
>>> can see that libicui18n.dll has been installed in /mingw/lib :-(
>> 
>> Hmm ... my mistake ... libicui18n.dll is of course in /mingw/bin, not 
>> /mingw/lib ... and the link command is telling the linker to look in 
>> /mingw/lib, so of course it's not finding it.
>> Now I guess I need to figure out why we don't have -L/mingw/bin in the 
>> command.  Possibly a problem with configure.ac in base?
> I'm not really sure what's going on on your machine, it built and links 
> perfectly on my machine.  I'll try to do a clean install later today to see 
> if I get similar results.
> 
> Because of the way linking works on Windows, you need to link against a .a 
> (.lib for MSVC) file containing import stubs, rather than directly against 
> the DLL. The DLL exports symbols with different names from what the compiler 
> will expect (Namely, the calling convention mangling is not present in the 
> DLL exported symbols)
> 
> I haven't had this problem, so I'm not sure I can comment.  The one thing I 
> can say for sure is that the DLLs should be in /mingw/bin or else Windows 
> won't find them when loading the libraries.  I see a bunch of .a files in 
> /mingw/lib but there are none for libicu.

Thanks ... I've modified the autoconf stuff in base to get the correct 
-L/mingw/bin into the compile command, and it all works for me now.

I'll post a summary of the instructions to do this.


reply via email to

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