boost.asio lib and CodeLite
Posted: Tue Mar 13, 2012 5:13 pm
Hi group!
I have installed CodeLite +MinGw+ Unit Test 1.3 on a Win7 system. Now I want to add the boost.asio library to CodeLite... But I don´t really know how to do this! I downloaded the boost_1_49_0 file and extracted it under C:\Program Files\boost_1_49_0\. I found a test-Code, but it doesn´t work... What I have to do, that Codelite knows where the boost-file is and how to use it????
after debugging the code the following warnings appeared...
PS: sry, for my bad english I´m from germany...
I have installed CodeLite +MinGw+ Unit Test 1.3 on a Win7 system. Now I want to add the boost.asio library to CodeLite... But I don´t really know how to do this! I downloaded the boost_1_49_0 file and extracted it under C:\Program Files\boost_1_49_0\. I found a test-Code, but it doesn´t work... What I have to do, that Codelite knows where the boost-file is and how to use it????
Code: Select all
#include <iostream>
#include <boost/asio.hpp>
#include <boost/date_time/posix_time/posix_time.hpp>
int main()
{
boost::asio::io_service io;
boost::system::error_code error;
boost::asio::deadline_timer t(io, boost::posix_time::seconds(5));
t.wait();
std::cout << "Hello, world!\n";
return 0;
}
Maybe someone can help me... Would be very nice!!!./Debug/main.o: In function `_static_initialization_and_destruction_0':
c:/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../include/boost/system/error_code.hpp:214: undefined reference to `boost::system::generic_category()'
c:/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../include/boost/system/error_code.hpp:215: undefined reference to `boost::system::generic_category()'
c:/mingw/bin/../lib/gcc/mingw32/4.4.1/../../../../include/boost/system/error_code.hpp:216: undefined reference to `boost::system::system_category()
PS: sry, for my bad english I´m from germany...