bug-gettext
[Top][All Lists]
Advanced

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

Re: EXTERNAL: Re: Question about gettext


From: Michele Locati
Subject: Re: EXTERNAL: Re: Question about gettext
Date: Wed, 21 Sep 2022 17:11:20 +0200

Il giorno lun 19 set 2022 alle ore 15:56 Bloom-Scheff, James L.
[US-US] [NON-EMP] <James.BloomScheff@leidos.com> ha scritto:
>
> Hi Michele,
>
> I was incorrect in what I was asking for. I’m not looking for a static 
> library. I need the lib and dll for linking and running with 64 bit windows. 
> I’m trying to use visual studio 2019 on windows 10. I have an old library 
> that worked with 32 bit visual studio 2003. I am getting unresolved externals.
>
> 1>fixPrintf.obj : error LNK2001: unresolved external symbol libintl_gettext
>
> 1>registry.obj : error LNK2001: unresolved external symbol libintl_gettext
>
> 1>superwindow.obj : error LNK2001: unresolved external symbol libintl_gettext
>
> 1>taskbar.obj : error LNK2001: unresolved external symbol libintl_gettext
>
> 1>arglist.obj : error LNK2001: unresolved external symbol libintl_gettext
>
> 1>errorwin.obj : error LNK2001: unresolved external symbol libintl_gettext
>
> 1>helpwin.obj : error LNK2001: unresolved external symbol libintl_gettext
>
> I’m a bit confused by what I am finding online. I’m finding a lot of pages 
> that claim to have the necessary binaries, but do not contain any .lib or 
> .dll files. I found one with a dll file, but no lib file. Clearly, other 
> people are finding on these pages things that I can’t find. What am I missing?

Hi James,

https:/mlocati.github.io/articles/gettext-iconv-windows.html is only
meant to provide the compiled gettext executables.
In the "shared" archives you can find the .DLL files, but sadly I
don't know how I can build (and provide) the .LIB files.

The problem is that I cross-compile the gettext tools in a linux
machine, so it generates linux-specific static libraries.
For example, here are the libgettextlib files generated with
https://github.com/mlocati/gettext-iconv-windows/blob/master/compile-iconv-gettext-windows.sh

$ find . -type f -name libgettextlib*
./configured/gettext-0.21/gettext-tools/gnulib-lib/.libs/libgettextlib-0-21.dll
./configured/gettext-0.21/gettext-tools/gnulib-lib/.libs/libgettextlib.dll.a
./configured/gettext-0.21/gettext-tools/gnulib-lib/.libs/libgettextlib.lai
./configured/gettext-0.21/gettext-tools/gnulib-lib/libgettextlib.la
./compiled/gettext/lib/libgettextlib.dll.a
./compiled/gettext/lib/libgettextlib.la
./compiled/gettext/bin/libgettextlib-0-21.dll

I don't know if there's a way to create .lib files from those files...

--
Michele



reply via email to

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