//This is how i am trying to initialise this.
void GameLayer::connectToAppWarp()
{
AppWarp::Client::initialize(APPWARP_APP_KEY,APPWARP_SECRET_KEY);
AppWarp::Client::getInstance()->setRecoveryAllowance(60);
AppWarp::Client::getInstance()->setConnectionRequestListener(this);
AppWarp::Client::getInstance()->setNotificationListener(this);
AppWarp::Client::getInstance()->setRoomRequestListener(this);
AppWarp::Client::getInstance()->setZoneRequestListener(this);
playerName = (isFirstPlayer ? "hero" : "monster");
AppWarp::Client::getInstance()->connect(playerName);
isFirstPlayer = !isFirstPlayer;
}
// I am getting this error.
Undefined symbols for architecture x86_64:
"AppWarp::Client::initialize(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >)", referenced from:
GameLayer::connectToAppWarp() in GameLayer.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)