I compiled and installed my boost library in '/ media / data / bin' in ubuntu 9.10. And I set INCLUDE_PATH, LIBRARY_PATH env:
$ echo $INCLUDE_PATH
/media/data/bin/boost/include:
$ echo $LIBRARY_PATH
/media/data/bin/boost/lib:
But when I compile the asio example, I get the following error: $ g ++ blocking_tcp_echo_server.cpp
blocking_tcp_echo_server.cpp:13:26: error: boost/bind.hpp: No such file or directory
blocking_tcp_echo_server.cpp:14:31: error: boost/smart_ptr.hpp: No such file or directory
blocking_tcp_echo_server.cpp:15:26: error: boost/asio.hpp: No such file or directory
blocking_tcp_echo_server.cpp:16:28: error: boost/thread.hpp: No such file or directory
blocking_tcp_echo_server.cpp:18: error: โboostโ has not been declared
blocking_tcp_echo_server.cpp:22: error: โboostโ has not been declared
blocking_tcp_echo_server.cpp:22: error: expected initializer before โ<โ token
blocking_tcp_echo_server.cpp:24: error: variable or field โsessionโ declared void
blocking_tcp_echo_server.cpp:24: error: โsocket_ptrโ was not declared in this scope
source
share