Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

[Bug] error LNK2001: unresolved external symbol _Avx2WmemEnabled

Open
#1,798 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
cmake, cpp

Research direction

Reproduce the failure in quickstart-cpp/firestore/testapp using the provided CMake and Visual Studio commands, then compare SDK 13.0.0 with 13.1 and 13.2. Review the linked minimal example and LLVM issue for the unresolved _Avx2WmemEnabled symbol and investigate the SDK build pipeline. Done means the Windows Debug testapp links successfully with the affected SDK versions.

Written by the indexing model from the issue text.

Description

api: firestore type: bug
[REQUIRED] Please fill in the following fields:
  • Pre-built SDK from the website 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:

[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:

$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 https://github.com/adabru/mre-firebase-crash-cpp.

With Google I only found https://github.com/llvm/llvm-project/issues/154595. 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.

Dominant language
C++
Stars
326
Forks
138
Avg merge
2d 16h
Merged PRs (30d)
3

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from firebase/firebase-cpp-sdk

All issues in firebase/firebase-cpp-sdk

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.