Building Firebase's Quickstart C++ Sample for Desktop

502 views
Skip to first unread message

Bruno Viecelli

unread,
Jul 13, 2016, 10:59:39 AM7/13/16
to Firebase Google Group
Hi folks,

I'm trying to build the sample found here https://github.com/firebase/quickstart-cpp/tree/master/auth/testapp/src with Qt enviroment and MSVC 2015.
I got the Firebase CPP library from here http://dl.google.com/firebase/sdk/cpp/firebase_cpp_sdk_1.0.0.zip and I've linked the files
$FIREBASE_SDK$/libs/windows/libauth.a
$FIREBASE_SDK$
/libs/windows/libapp.a
to my project, but I got this linker error:
libauth.a(credential_stub.o):-1: error: LNK2038: mismatch detected for '_MSC_VER': value '1800' doesn't match value '1900' in main.obj

By Googling it I found that my linker version is 1900 and the used to compile the lib was 1800 (MSVC 2013). But SDK's readme.md tells to build with MSVC 2015+.

If I get the MSVC 2013 I think that I can compile it, right?

Sorry for my bad english. :)

Stewart Miles

unread,
Jul 13, 2016, 11:07:38 AM7/13/16
to fireba...@googlegroups.com
I believe we changed MSVC version when releasing the most recent release 1.0.1.
http://dl.google.com/firebase/sdk/cpp/firebase_cpp_sdk_1.0.1.zip

Could you give it a try with 1.0.1 instead?

Also, you should be aware that even though you should be able to build for Windows (i.e things will link) all our of libraries are stub implementations for desktop.  That is they are non-functional for desktop.  We provide stub libraries simply to reduce the amount of conditionally compiled code in your application (i.e #ifdefs).

If you want to check out Firebase functionality, try building for iOS or Android.

Cheers,
Stewart

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/deb5b605-7333-45e7-bcbb-b5b01eca5804%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages