problème compilation d'exemple asio
Bonjour
J'essaye de développer un serveur qui tournera d'abord sous linux mais multiplatforme à terme.
J'ai télécharger la verison 1.35 de boost qui contien asio.
J'ai ensuite télécharger bjam que j'ai placé dans ../boost_1_35_0/ et j'ai executé la commande indiqué sur le site de boost (bjam --with-system --with-thread --with-date_time --with-regex --with-serialization stage) mais je n'arrive pas à compiler les exemples donné.
Je compile en tappant :
Citation:
\gcc -I ~/boost_1_35_0/ toto.cpp
Le dernier exemple que j'ai eassyé (http://www.boost.org/doc/libs/1_35_0...cho_server.cpp) me renvoyer 276 lignes d'erreurs :
Citation:
/tmp/ccaExyjC.o: In function `std::__verify_grouping(char const*, unsigned int, std::basic_string<char, std::char_traits<char>, std::allocator<char> > const&)':
server.cpp:(.text+0xe): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::size() const'
server.cpp:(.text+0x59): undefined reference to `std::basic_string<char, std::char_traits<char>, std::allocator<char> >::operator[](unsigned int) const'
.... /* là j'ai zapé quelques lignes */
(.rodata._ZTIN5boost4asio6detail12service_baseINS1_23reactive_socket_serviceINS0_2ip3udpENS1_13epoll_reactorILb0EEEEEEE[typeinfo for boost::asio::detail::service_base<boost::asio::detail::reactive_socket_service<boost::asio::ip::udp, boost::asio::detail::epoll_reactor<false> > >]+0x0): undefined reference to `vtable for __cxxabiv1::__si_class_type_info'
/tmp/ccaExyjC.o:(.rodata._ZTVN5boost4asio6detail12service_baseINS1_23reactive_socket_serviceINS0_2ip3udpENS1_13epoll_reactorILb0EEEEEEE[vtable for boost::asio::detail::service_base<boost::asio::detail::reactive_socket_service<boost::asio::ip::udp, boost::asio::detail::epoll_reactor<false> > >]+0x10): undefined reference to `__cxa_pure_virtual'
/tmp/ccaExyjC.o:(.eh_frame+0x12): undefined reference to `__gxx_personality_v0'
collect2: ld a retourné 1 code d'état d'exécution
Apparament il y a un problème de linkage mais je suis un peu perdu.
Quelqu'un sais ce que j'ai raté dans la doc?