Boost logo

Boost Users :

Subject: Re: [Boost-users] Asio example 5 sagmentation fault
From: Arash Partow (arash_at_[hidden])
Date: 2011-08-31 04:10:36


Alessandro Candini wrote:
> I'm really interested in exemple 5 of boost asio:
>
> http://www.boost.org/doc/libs/1_47_0/doc/html/boost_asio/tutorial/tuttimer5/src.html
>
>
> I've tried it with boost-1.47.0. I can compile without warnings using:
>
> g++ -Wall -pedantic -lboost_thread -lboost_system -o timer5 timer5.cpp
>

Try building like so:

g++ -Wall -pedantic -o timer5 timer5.cpp -lpthread -lboost_thread -lboost_system


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net