我怎样才能建立gettext的64位的DLL在Windows上。gettext、Windows、DLL

2023-09-08 10:28:28 作者:我的你,我的病 #

我成功地在Windows上建立gettext的32位的DLL。

我安装了这些。 gettext的-0.18.11 MinGW的(包括MSYS)

  ./配置 -  preFIX = / MinGW的--enable-线程= win32的--enable-重定位
CD的gettext运行时
使
 

但我不知道如何建立64位的DLL。

有人说我应该使用mingw64。然后我安装mingw64和MSYS。

但我不知道该怎么办设置mingw64和MSYS打造64位的DLL。 我不知道gettext的配置选项来构建64位的DLL。

感谢。

解决方案

下载最新的MinGW-W64针对64位(也有面向32位的,所以一定要小心)的的这里

注意:作为您加入 - 启用线程=的Win32 ,那么很可能你会感兴趣的Win32线程支持的分布,而不是POSIX,所以要小心,当你选择哪一个下载。

配置在几乎相同的方式,但增加了一个选项:

  ./配置--build = x86_64的-W64-的mingw32  -  preFIX = / MinGW的--enable-线程= win32的--enable-重定位
 
C Windows System32 SGWPShe64.dll是什么东西

往后靠。 :)

I succeeded to build gettext 32bit dll on Windows.

I installed these. gettext-0.18.11 mingw (include msys)

./configure --prefix=/mingw --enable-threads=win32 --enable-relocatable
cd gettext-runtime
make

But I don't know how to build 64bit dll.

Someone said I should use mingw64. Then I installed mingw64 and msys.

But I don't know how to do setting mingw64 and msys to build 64bit dll. And I don't know gettext configure option to build 64bit dll.

Thanks.

解决方案

Download latest MinGW-w64 targeting 64-bit (there are also targeting 32-bit, so be careful) here.

NOTE: As you added --enable-threads=win32, then probably you would be interested in the distribution with Win32 threading support, rather than POSIX, so be cautious when you choose which one to download.

Configure in almost the same way, but with addition of one option:

./configure --build=x86_64-w64-mingw32 --prefix=/mingw --enable-threads=win32 --enable-relocatable

Lean back. :)