MSYS2/MinGW64 中的 ICU 58 undefined reference

标签 icu mingw-w64

使用说明
Compiling-ICU-with-MinGW
我收到以下错误

digitlst.o:digitlst.cpp:(.text+0x11): undefined reference to `_free_locale'
digitlst.o:digitlst.cpp:(.text+0x8fe): undefined reference to `_create_locale'
digitlst.o:digitlst.cpp:(.text+0xa20): undefined reference to `_create_locale'
collect2.exe: error: ld returned 1 exit status

我的构建环境:
  • MSYS2 与 gcc 版本 6.3.0(Rev1,由 MSYS2 项目构建)
  • 64 位工具链:pacman -S mingw-w64-x86_64-toolchain
  • ICU 58.2 来源 ICU4C

  • 我做了
    unzip icu4c-58_2-src.zip
    cd icu/source
    ./runConfigureICU MinGW prefix=$PWD/../dist
    make
    

    有谁知道如何解决这个问题?

    编辑:与 58.1 相同,但 57.1 工作正常。

    最佳答案

    我试图用最新版本的 ICU 构建 QT 5.8,但出现了这个问题......

    我能够通过使用 x86_64-6.3.0-posix-seh-rt_v5-rev1 链接 libmsvcr100.a 来构建 icu4c-58_2

    默认的 libmsvcrt.a 中似乎缺少这些函数

    关于MSYS2/MinGW64 中的 ICU 58 undefined reference ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41844644/

    相关文章:

    python - Windows : VIM doesn't find Python3 上的 GIT bash

    windows - CMake 生成的 MinGW Makefile 有引用错误

    c++ - 无法为 Clion 安装 MinGW

    windows - 想要在 Windows 上移植现有的 rsync

    c - 如何使用 ICU4C 规范化字符串?

    c++ - 如何在不将非法输入替换为替换字符的情况下解码 UTF-8?

    c++ - 为 iOS 构建 ICU

    c++ - 使用 ICU 进行分词

    regex - 我可以阻止我的捕获组被覆盖吗?

    c++ - 无法使用 mingw-w64 编译智能指针