Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Error compiling on Ubuntu natty and oneiric #41

efelix opened this Issue Nov 5, 2011 · 4 comments


None yet
2 participants

efelix commented Nov 5, 2011

Trying to compile on natty and oneiric. gcc -4.5.2 and gcc-4.6.1

src/websocket_frame.hpp: In constructor ‘websocketpp::frame::frame()’:
src/websocket_frame.hpp:99:54: error: ‘INT32_MIN’ was not declared in this scope
src/websocket_frame.hpp:99:64: error: ‘INT32_MAX’ was not declared in this scope



zaphoyd commented Nov 5, 2011

which branch are you trying to build?

efelix commented Nov 5, 2011

Master branch. Git clone today.

@zaphoyd zaphoyd closed this in 4f74708 Nov 5, 2011


zaphoyd commented Nov 5, 2011

I was able to reproduce the issue with Boost 1.47 on Ubuntu 10.04 with GCC 4.4.3. Latest commit should fix it. If it doesn''t let me know what version of boost you are building with.

efelix commented Nov 6, 2011

I was using Boost 1.47 compiled from source.
Now library build without issue on both, shared and static. But is a problem compiling examples, same problem on four examples.

root@xubuntu:/DEVELOP/websocketpp/examples/chat_client# make
g++ -c -O2 -o chat_client.o chat_client.cpp
g++ -c -O2 -o chat_client_handler.o chat_client_handler.cpp
g++ -O2 chat_client.o chat_client_handler.o -o chat_client -lboost_system -lboost_thread -lboost_date_time -lboost_regex -lboost_random ../../libwebsocketpp.a
../../libwebsocketpp.a(websocket_session.o): In function websocketpp::session::session(boost::asio::io_service&, boost::shared_ptr<websocketpp::connection_handler>, unsigned long long)': websocket_session.cpp:(.text+0x2345): undefined reference toboost::random::random_device::random_device()'
websocket_session.cpp:(.text+0x23a0): undefined reference to boost::random::random_device::random_device()' websocket_session.cpp:(.text+0x24c9): undefined reference toboost::random::random_device::~random_device()'
websocket_session.cpp:(.text+0x24e5): undefined reference to boost::random::random_device::~random_device()' websocket_session.cpp:(.text+0x25c7): undefined reference toboost::random::random_device::~random_device()'



Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment