2016-06-30 13 views
-2

C++では、招待状の送信方法は?それSendInviteResult - 不完全な型 'class firebase :: Future <firebase :: invites :: InvitesSender :: SendInviteResult>'の無効な使用。

error: invalid use of incomplete type 'class firebase::Future<firebase::invites::InvitesSender::SendInviteResult>' 
    sender->SendInvite(); 
firebase_cpp_sdk\include/firebase/invites/sender.h:12:7: error: declaration of 'class firebase::Future<firebase::invites::InvitesSender::SendInviteResult>' 
class Future; 

答えて

0

が見つかりました:

firebase::invites::InvitesSender *sender = new firebase::invites::InvitesSender(*_app); 
sender->SetTitleText("Invite Friends"); 
sender->SetMessageText("Try my app today, and get 200 free coins!"); 
sender->SetCallToActionText("Download now!"); 
sender->SendInvite(); 

コンパイラはエラーを与えます!含める必要があります:

#include <firebase/future.h> 
関連する問題