personalcomputer / Omegle-MITM

Sniff conversations between random strangers on the Omegle random-pairing instant messaging service using libomegle.
3 stars 1 forks source link

Error compiling #1

Closed dejl closed 12 years ago

dejl commented 12 years ago

[root@xs9 personalcomputer-Omegle-MITM-17aa81d]# cd src [root@xs9 src]# ls ChatLog.cpp ChatRoom.h makefile SpamDefinitions.cpp ChatLog.h Error.h MitmLogger.cpp SpamDefinitions.h ChatRoom.cpp main.cpp MitmLogger.h [root@xs9 src]# make g++ -lboost_filesystem -lboost_system -lboost_regex -Wall -g -iquote/usr/include/ -L/usr/lib/ -lomegle -Wl,-rpath,/usr/lib/ -std=c++0x -c ChatLog.cpp -o ChatLog.o g++ -lboost_filesystem -lboost_system -lboost_regex -Wall -g -iquote/usr/include/ -L/usr/lib/ -lomegle -Wl,-rpath,/usr/lib/ -std=c++0x -c ChatRoom.cpp -o ChatRoom.o ChatRoom.cpp: In member function ‘void ChatRoom::HandleEvents()’: ChatRoom.cpp:150: error: expected primary-expression before ‘[’ token ChatRoom.cpp:150: error: expected primary-expression before ‘]’ token ChatRoom.cpp:150: error: expected primary-expression before ‘&’ token ChatRoom.cpp:150: error: ‘partner’ was not declared in this scope ChatRoom.cpp:157: error: expected primary-expression before ‘[’ token ChatRoom.cpp:157: error: expected primary-expression before ‘]’ token ChatRoom.cpp:157: error: expected primary-expression before ‘&’ token ChatRoom.cpp:157: error: ‘partner’ was not declared in this scope ChatRoom.cpp:164: error: expected primary-expression before ‘[’ token ChatRoom.cpp:164: error: expected primary-expression before ‘]’ token ChatRoom.cpp:164: error: expected primary-expression before ‘&’ token ChatRoom.cpp:164: error: ‘partner’ was not declared in this scope ChatRoom.cpp:182: warning: comparison between signed and unsigned integer expressions make: *\ [ChatRoom.o] Error 1 [root@xs9 src]#

personalcomputer commented 12 years ago

Hey thanks for the bug report, Daniel!

What's going on here is I'm employing some new features of C++0x, also known as C++11. These features have recently been added to GCC since the spec started to be somewhat finalized, and are not present or otherwise non-functional on older versions of GCC. While I'm not going to identify the exact version of GCC where they got the features I'm using working correctly, I can tell you that it works fine on GCC 4.6.3 +.

dejl commented 12 years ago

Alright, so libomegle compiled (without the python bindings) successfully, i "make install"'d and that should work.

My CentOS 6 server only has gcc version 4.4.6 20120305

My Mac has: gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.9.00)

I'll either have to compile the newer gcc from source or find a RPM

Thanks for the quick response btw!