Bonsoir a tous,
j'ai besoin de d'utiliser la lib boost ainsi que la lib asio
(operations asynchrones sur des sockets par exemple) et pour commencer
a tester tout ca, j'aimerait compiler les tutos qui sont fournis sur
le site officiel (
http://asio.sourceforge.net/boost_asio_0_3_7/libs/asio/doc/index.html).
je pensait avoir apt-get install toutes les libs qu'il me faudrait,
malheureusement je tombe sur une erreur de link:
$ g++ tuto1.cpp -o tuto1 -lboost_regex
/tmp/ccOeDxTE.o: In function
`__static_initialization_and_destruction_0(int, int)':
tuto1.cpp:(.text+0x13b): undefined reference to
`boost::system::error_code::new_category(int
(*)(boost::system::error_code const&), std::basic_string<char,
std::char_traits<char>, std::allocator<char> >
(*)(boost::system::error_code const&), std::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >
(*)(boost::system::error_code const&))'
tuto1.cpp:(.text+0x272): undefined reference to
`boost::system::error_code::new_category(int
(*)(boost::system::error_code const&), std::basic_string<char,
std::char_traits<char>, std::allocator<char> >
(*)(boost::system::error_code const&), std::basic_string<wchar_t,
std::char_traits<wchar_t>, std::allocator<wchar_t> >
(*)(boost::system::error_code const&))'
/tmp/ccOeDxTE.o: In function `boost::system::system_error::what()
const':
tuto1.cpp:(.text._ZNK5boost6system12system_error4whatEv[boost::system::system_error::what()
const]+0xb9): undefined reference to
`boost::system::error_code::message() const'
collect2: ld returned 1 exit status
je recherche sur le net des explications sur comment installer la
libboost de maniere correcte, et je ne parviens pas a en trouver...
quelqu'un aurait-il une piste a me proposer?
--
105 116 039 115 032 110 111 116 032 097
032 098 117 103 044 032 105 116 039 115
032 097 032 102 101 097 116 117 114 101