我在ubuntu 9.10的'/ media/data/bin'中编译并安装了我的boost库。 我已经设置了INCLUDE_PATH,LIBRARY_PATH ENV:在ubuntu上设置boost库的问题
$ echo $INCLUDE_PATH
/media/data/bin/boost/include:
$ echo $LIBRARY_PATH
/media/data/bin/boost/lib:
但是,当我编译ASIO例子中,我得到以下错误: $ 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
我没有使用这个,因为它会提升我的主驱动器,我用尽了空间。所以我编译/安装我的外部硬盘驱动器(它比我的主驱动器有更多的空间)。 – n179911 2009-12-31 01:04:52