#include "libs/socket.io-client-cpp/src/sio_client.h"
int main(int argc, const char * argv[]) {
sio::client h;
h.connect("http://127.0.0.1:3000");
return 0;
}
Undefined symbols for architecture x86_64:
"sio::client::connect(std::__1::basic_string, std::__1::allocator > const&)", referenced from:
_main in main.o
"sio::client::client()", referenced from:
_main in main.o
"sio::client::~client()", referenced from:
_main in main.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)