Search code examples
iosxcode6raknet

Raknet build error


trying to build [Raknet][1] iOS with xCode 6.2

but I am getting error like

/RakNet-master/Source/ReplicaManager3.cpp:141:61: Comparison between pointer and integer ('RakNet::Connection_RM3 *' and 'int')

do anybody had successfully build RakNet on Xcode 6.2 ?


Solution

  • seems C++ 11 issue, I get resolved with changing false to nullptr

    earlier

    if (GetConnectionByGUID(participantListIn[index], worldId)==false)
    

    now

    if (GetConnectionByGUID(participantListIn[index], worldId)==nullptr)