firebase / firebase/firebase-cpp-sdk

[Bug] error LNK2001: unresolved external symbol _Avx2WmemEnabled

未关闭
#1,798 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
api: firestore type: bug
主要语言
C++
星标
326
派生
137
平均合并
3 天 9 小时
30 天内合并 PR
5

描述

### [REQUIRED] Please fill in the following fields:

* Pre-built SDK from the [website](https://firebase.google.com/download/cpp) or open-source from this repo: prebuilt from this repo's GitHub release page
* Firebase C++ SDK version: **13.1** and **13.2**
* Problematic Firebase Component: **Firestore**
* Other Firebase Components in use: Auth
* Platform you are using the C++ SDK on: **Windows**
* Platform you are targeting: **Windows desktop**

### [REQUIRED] Please describe the issue here:

Linking the Windows firebase.lib with MSVC fails with the error:

```log
[build] firebase_firestore.lib(4c456a4b533e2a6acad4654868657312_firestore_util.dir_Debug_path.obj) : error LNK2001: unresolved external symbol _Avx2WmemEnabled [C:\Users\ABrun\Documents\git\quickstart-cpp\build\desktop_testapp.vcxproj]
```

Reproduction steps with the quickstart Firestore testapp:

```ps1
$env:FIREBASE_CPP_SDK_DIR = "$env:USERPROFILE/Downloads/firebase_cpp_sdk_13.1.0/firebase_cpp_sdk"
git clone https://github.com/firebase/quickstart-cpp
cd quickstart-cpp/firestore/testapp
Set-Alias cmakevs "C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"
cmakevs -S . -B build -G "Visual Studio 17 2022" -A x64 -DCMAKE_EXE_LINKER_FLAGS=/ignore:4099
cmakevs --build build --config Debug
```

Visual Studio Community 2022: 17.14.18 (October 2025)
MSVC: 14.44.35207

The error happens every time. The build succeeds with Firebase SDK version 13.0.0 and 12.8.0. The error also happens on another minimal example I created at .

With Google I only found . It mentions a bug in llvm. The fix was merged on Aug 22. So maybe a llvm update in the Firebase SDK build pipeline might fix this.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。