I'm trying to compile SFS2X in xCode 10 with cocos2d-x 3.17.
I read this guide: http://docs2x.smartfoxserver.com/GettingStarted/client-api-cpp-ios-xcode7
And i read about SpaceWar game: http://docs2x.smartfoxserver.com/ExamplesCpp/spacewar
However, when i try to compile my project, this is the error:
Code: Select all
Undefined symbols for architecture arm64:
"Sfs2X::SmartFox::RemoveEventListener(boost::shared_ptr<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > >, boost::shared_ptr<Sfs2X::Util::DelegateOneArgument<boost::shared_ptr<Sfs2X::Core::BaseEvent> > >)", referenced from:
ServerConnector::~ServerConnector() in TestSmartFoxServer-mobile-arm64-master.o
"Sfs2X::SmartFox::SmartFox(bool)", referenced from:
ServerConnector::initSmartFox() in TestSmartFoxServer-mobile-arm64-master.o
"ServerConnector::GetInstance()", referenced from:
OnConnection(unsigned long long, boost::shared_ptr<Sfs2X::Core::BaseEvent>) in TestSmartFoxServer-mobile-arm64-master.o
OnConnectionLost(unsigned long long, boost::shared_ptr<Sfs2X::Core::BaseEvent>) in TestSmartFoxServer-mobile-arm64-master.o
"Sfs2X::Core::SFSEvent::CONNECTION", referenced from:
ServerConnector::initSmartFox() in TestSmartFoxServer-mobile-arm64-master.o
ServerConnector::~ServerConnector() in TestSmartFoxServer-mobile-arm64-master.o
"Sfs2X::SmartFox::ThreadSafeMode(bool)", referenced from:
ServerConnector::initSmartFox() in TestSmartFoxServer-mobile-arm64-master.o
"Sfs2X::SmartFox::Connect(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, long)", referenced from:
ServerConnector::connect() in TestSmartFoxServer-mobile-arm64-master.o
"Sfs2X::Core::BaseEvent::Params()", referenced from:
ServerConnector::onConnected(boost::shared_ptr<Sfs2X::Core::BaseEvent>) in TestSmartFoxServer-mobile-arm64-master.o
"Sfs2X::SmartFox::Disconnect()", referenced from:
ServerConnector::~ServerConnector() in TestSmartFoxServer-mobile-arm64-master.o
"Sfs2X::Core::SFSEvent::CONNECTION_LOST", referenced from:
ServerConnector::initSmartFox() in TestSmartFoxServer-mobile-arm64-master.o
ServerConnector::~ServerConnector() in TestSmartFoxServer-mobile-arm64-master.o
ld: symbol(s) not found for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Anyone can help me?
Thanks!!