-
Notifications
You must be signed in to change notification settings - Fork 128
Description
Please fill in the following fields:
Pre-built SDK from the website or open-source from this repo: website
Firebase C++ SDK version: 6.14.0
Firebase plugins in use (Auth, Database, etc.): Firestore
Additional SDKs you are using (Facebook, AdMob, etc.):
Platform you are using the C++ SDK on (Mac, Windows, or Linux): Windows
Platform you are targeting (iOS, Android, and/or desktop): desktop
Please describe the issue here:
(Please list the full steps to reproduce the issue. Include device logs, Unity logs, and stack traces if available.)
I'm trying to use the firestore in our project, unfortunately, I always get the link error when call to firestore function. For example
extern "C" int common_main(int argc, const char* argv[]) {
App::Create();
Firestore* db = Firestore::GetInstance();
return 0;
}
This error is happening in both debug/release mode like bellow:
2>firebase_firestore.lib(8e190590a5ffbe491c9e3724aeefbb9b_fsdep_absl_time_internal_cctz_time_zone.dir_Debug_time_zone_info.obj) : error LNK2001: unresolved external symbol "class std::unique_ptr<class absl::time_internal::cctz::ZoneInfoSource,struct std::default_delete<class absl::time_internal::cctz::ZoneInfoSource> > (__cdecl* absl::time_internal::cctz_extension::zone_info_source_factory)(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::function<class std::unique_ptr<class absl::time_internal::cctz::ZoneInfoSource,struct std::default_delete<class absl::time_internal::cctz::ZoneInfoSource> > __cdecl(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)> const &)" (?zone_info_source_factory@cctz_extension@time_internal@absl@@3P6A?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@absl@@U?$default_delete@VZoneInfoSource@cctz@time_internal@absl@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@5@AEBV?$function@$$A6A?AV?$unique_ptr@VZoneInfoSource@cctz@time_internal@absl@@U?$default_delete@VZoneInfoSource@cctz@time_internal@absl@@@std@@@std@@AEBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@2@@Z@5@@ZEA)
2>E:\INDI\3rd\quickstart-cpp\firestore\testapp\build\Debug\desktop_testapp.exe : fatal error LNK1120: 1 unresolved externals
Could you take a look and show me any additional steps I need to do?
Please answer the following, if applicable:
Have you been able to reproduce this issue with just the Firebase C++ quickstarts ? Yes
What's the issue repro rate? 100%