Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

[Bug] Unresolved external symbol error on Windows build with Firebase C++ SDK 12.1.0 and above

未关闭
#1,665 1 条评论 0 个 reaction 已指派 1 人 在 GitHub 查看

@dconeybe 已经在做这个了。

开始于 2024年12月17日。

评估

这个 Issue 还没有评估数据。

描述

api: firestore needs-info new type: question
[REQUIRED] Please fill in the following fields:
  • Pre-built SDK from the website or open-source from this repo: Pre-built SDK from website
  • Firebase C++ SDK version: 12.1.0 and above
  • Problematic Firebase Component: Firestore
  • Other Firebase Components in use: None
  • Platform you are using the C++ SDK on: Windows
  • Platform you are targeting: desktop
[REQUIRED] Please describe the issue here:

This issue occurs when building a project on Windows with Firebase C++ SDK versions 12.1.0 and above. The build fails with an unresolved external symbol error linked to the firebase_firestore.lib file.

Steps to reproduce:
  1. Set up a C++ project on Windows.
  2. Integrate Firebase C++ SDK (version 12.1.0 or higher) with Firestore as a dependency.
  3. Build the project.

Code: LNK2019
Description: unresolved external symbol ___std_min_8i@8 referenced in function "auto __cdecl std::__std_min<__int64 const >(__int64 const * const,__int64 const * const)" (??$__std_min@$$CB_J@std@@YA?A_PQB_J0@Z)

Have you been able to reproduce this issue with just the Firebase C++ quickstarts?
No, the issue was reproduced on a custom project using Firestore.

What's the issue repro rate?
100%

I am encountering a persistent linker error when building on Windows with Firebase C++ SDK version 12.1.0 and later. The issue does not appear in version 12.0.0, but it consistently arises in 12.1.0 and above.

Code: LNK2019
Description: unresolved external symbol ___std_min_8i@8 referenced in function "auto __cdecl std::__std_min<__int64 const >(__int64 const * const,__int64 const * const)" (??$__std_min@$$CB_J@std@@YA?A_PQB_J0@Z)

主要语言
C++
星标
326
派生
138
平均合并
1 天 22 小时
30 天内合并 PR
6

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

firebase/firebase-cpp-sdk 的其他 Issue

查看 firebase/firebase-cpp-sdk 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

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