I can't initialise Appwarp in cocos2d-x Project

0 votes
//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)

 

 

asked Jun 19, 2018 in Announcements by nali (10 points)
On which platform you are testing(iOS or Android)?
Issue has been solved!!

Please log in or register to answer this question.

Download Widgets
Welcome to ShepHertz Product line forum, where you can ask questions and receive answers from the community. You can also reach out to us on support@shephertz.com
...