Skip to content

Building test app fails on Windows MSVC 16 2019 #116

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
AlexOpanasevych opened this issue Jul 27, 2023 · 5 comments
Closed

Building test app fails on Windows MSVC 16 2019 #116

AlexOpanasevych opened this issue Jul 27, 2023 · 5 comments
Labels
closed-by-bot needs-info Need information for the developer stale Don't have recent activity type: question

Comments

@AlexOpanasevych
Copy link

  • Which Firebase Sample: Remote Config
  • Firebase C++ SDK version: 11.0.3
  • Additional SDKs you are using: Nothing
  • Platform you are using the SDK on: Windows
  • Platform you are targeting: Desktop

The issue happens every time I build project using Cmake

When I try to build test application using prebuilt binaries from here, there happen some weird compiler errors, listed here:
firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_cleanup_notifier.obj) : error LNK2019: unresol ved external symbol __std_find_trivial_8 referenced in function "void * * __cdecl __std_find_trivial<void *,unsigned __ int64>(void * *,void * *,unsigned __int64)" (??$__std_find_trivial@PEAX_K@@YAPEAPEAXPEAPEAX0_K@Z) [C:\Users\Sasha\Docum ents\projects2021\github-garbage-folder\firebase-test-app\desktop_testapp.vcxproj] firebase_app.lib(d3d7d08a438878e74aeb2cbaaedfc967_flatbuffers.dir_Debug_idl_parser.obj) : error LNK2001: unresolved ext ernal symbol __std_find_trivial_8 [C:\Users\Sasha\Documents\projects2021\github-garbage-folder\firebase-test-app\deskto p_testapp.vcxproj] firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_locale.obj) : error LNK2019: unresolved extern al symbol u_errorName referenced in function "class std::basic_string<char,struct std::char_traits<char>,class std::all ocator<char> > __cdecl firebase::internal::GetTimezone(void)" (?GetTimezone@internal@firebase@@YA?AV?$basic_string@DU?$ char_traits@D@std@@V?$allocator@D@2@@std@@XZ) [C:\Users\Sasha\Documents\projects2021\github-garbage-folder\firebase-tes t-app\desktop_testapp.vcxproj] firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_locale.obj) : error LNK2019: unresolved extern al symbol ucal_getTimeZoneIDForWindowsID referenced in function "class std::basic_string<char,struct std::char_traits<c har>,class std::allocator<char> > __cdecl firebase::internal::GetTimezone(void)" (?GetTimezone@internal@firebase@@YA?AV ?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@XZ) [C:\Users\Sasha\Documents\projects2021\github-garbage- folder\firebase-test-app\desktop_testapp.vcxproj] firebase_app.lib(d94e1bff3c0e8414a6679ea91c3e103e_firebase_app.dir_Debug_heartbeat_storage_desktop.obj) : error LNK2019 : unresolved external symbol __std_find_trivial_1 referenced in function "char const * __cdecl __std_find_trivial<char const ,unsigned char>(char const *,char const *,unsigned char)" (??$__std_find_trivial@$$CBDE@@YAPEBDPEBD0E@Z) [C:\User s\Sasha\Documents\projects2021\github-garbage-folder\firebase-test-app\desktop_testapp.vcxproj] C:\Users\Sasha\Documents\projects2021\github-garbage-folder\firebase-test-app\Debug\desktop_testapp.exe : fatal error L NK1120: 4 unresolved externals [C:\Users\Sasha\Documents\projects2021\github-garbage-folder\firebase-test-app\desktop_t estapp.vcxproj]

Steps to reproduce:

cmake .
cmake --build .

@google-oss-bot
Copy link

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@AlexOpanasevych
Copy link
Author

Also I forgot to mention that I'm using MSVC 16 2019 compiler

@AlmostMatt
Copy link

AlmostMatt commented Jul 28, 2023

The unresolved symbols appear to be normal c++ classes and not firebase-specific.

unresolved external symbol __std_find_trivial_8 ...
unresolved external symbol u_errorName referenced in function "class std::basic_string ...
unresolved external symbol ucal_getTimeZoneIDForWindowsID referenced in function "class std::basic_string ...
unresolved external symbol__std_find_trivial_1 ...

I am not entirely sure what would cause those failures but I suspect it is some incompatibility with the C++ settings the firebase binary was built with and the C++ compiler settings that you are using. Can you try updating your MSVC compiler and see if that has any impact on the error messages that you see? Also ensure that you are targeting C++ 14 or newer.

@AlmostMatt AlmostMatt added type: question needs-info Need information for the developer and removed new labels Jul 28, 2023
@google-oss-bot google-oss-bot added the stale Don't have recent activity label Aug 8, 2023
@google-oss-bot
Copy link

Hey @AlexOpanasevych. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 3 days I will close it automatically.

If you have more information that will help us get to the bottom of this, just add a comment!

@google-oss-bot
Copy link

Since there haven't been any recent updates here, I am going to close this issue.

@AlexOpanasevych if you're still experiencing this problem and want to continue the discussion just leave a comment here and we are happy to re-open this.

@firebase firebase locked and limited conversation to collaborators Sep 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
closed-by-bot needs-info Need information for the developer stale Don't have recent activity type: question
Projects
None yet
Development

No branches or pull requests

3 participants