gpt4 book ai didi

在 Windows 上将 EXPAT 编译为静态链接的 .a

转载 作者:可可西里 更新时间:2023-11-01 09:31:44 46 4
gpt4 key购买 nike

我正在使用 MingW 在 Windows 上编写 C 程序,并希望使用 EXPAT XML 库。我想静态编译我的程序,所以我需要静态 .a 库。

有什么方法可以将 EXPAT 编译成 Windows 上的静态独立库吗?

最佳答案

如果您从 Expat Sourceforge project page 下载官方版本您将无法使用 MSYS 或 MinGW 编译和安装库。您将需要安装 CygWin 来配置、制作和安装。

要编译和安装 native MinGW 库,您需要修改版本的 configure 脚本和 libtool。只需下载 expat source tarball provided by MinGW而不是主要的原始外籍人士。您也可能需要使用 precompiled binaries instead

关于在 Windows 上将 EXPAT 编译为静态链接的 .a,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3127589/

46 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com