I've found this wonderful tutorial on setting up an SPP server on raspberry pi in C++ with given source codes. The only problem that i'm facing is that some include files are compiled to *.o files (for a raspberry pi). So it (exits with an error code on execution) isn't working. I tried rewriting one of the ".o"includes(sdp_register) but now i'm getting a segmentation fault, pretty close to success but still a bit away :/. Tried contacting the blog owner, unfortunately he wont give source code for the compiled "".o" files.