vendredi 25 septembre 2015

Undefined symbols for architecture x86_64 - Compile error with Boost and Sockets.io (C++)

This is a problem I've been having for a solid week now; I am fairly new to C++ programming and am trying to compile the very basics of the socket.io C++ library in xcode 6.

This is the code I am using.

#include <iostream>
#include <string>
#include "sio_client.h"

int main(int argc, const char * argv[]) {

    sio::client h;
    h.connect("http://127.0.0.1:3000");
}

The build settings under target are: Library search path: /usr/local/Cellar/boost/1.58.0/lib User Header search path: /usr/local/Cellar/boost/1.58.0/include, "$(SRCROOT)/boost/socket.io-client-cpp/lib/websocketpp"and "$(SRCROOT)/boost/socket.io-client-cpp/lib/rapidjson/include"

I have installed Boost using brew install boost --c++11 and imported the libc++.dylib and tried the libc++.6.0.9.dylib as frameworks into the project.

And I am getting the following compiling error.

Compiling error.

Note: following tutorial from - http://ift.tt/1PEVTmN.

Can anybody PLEASE! Help me, I am dying here :P

Aucun commentaire:

Enregistrer un commentaire