|
Boost Users : |
Subject: [Boost-users] problem with asio
From: pedro chaparro (pdro07_at_[hidden])
Date: 2009-08-31 12:59:15
hi everyone, i'm new with boost, i've try some examples and they work
well but spacifically with programs that use asio libraries i've got
some error when i try to compile them, below the line i use to
compile,
ill apreciate some help
thnaks
pdro7_at_ubuntu:~/Desktop$ c++ -I /home/pdro7/Desktop/boost_1_40_0
asio1.cpp -o asio1 /usr/lib/libboost_system-gcc43-mt-1_35.a
/usr/lib/libboost_thread-gcc43-mt-1_35.a
/usr/lib/libboost_date_time-gcc43-mt-1_35.a
/usr/lib/libboost_regex-gcc43-mt-1_35.a
/usr/lib/libboost_serialization-gcc43-mt-1_35.a
// timer.cpp
// ~~~~~~~~~
//
// Copyright (c) 2003-2008 Christopher M. Kohlhoff (chris at kohlhoff dot com)
//
// Distributed under the Boost Software License, Version 1.0. (See accompanying
// file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
#include <iostream>
#include <boost/asio.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
int main()
{
boost::asio::io_service io;
boost::asio::deadline_timer t(io, boost::posix_time::seconds(5));
t.wait();
std::cout << "Hello, world!\n";
return 0;
}
-- Ing Pedro Alonso Chaparro Valero Ciudad Politecnica de la Innovación iTEAM - Mobile Communications Group Polytechnic University of Valencia C\ Camino de Vera S/N, Edificio 8G 46022 Valencia, Spain
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