Boost logo

Boost Users :

From: Daniel (daniel.cubetek_at_[hidden])
Date: 2007-11-29 10:45:35


I wrote a simple "Hello, world!" program to test if boost/asio was working
correctly:

#include <iostream>
#include <boost/date_time/posix_time/posix_time.hpp>

int main()
{
  std::cout << "Hello, world!\n";
  return 0;
}

But, I get this: (GCC C++ 4.1.2/Linux version 2.6.22-gentoo-r8)
test.cpp:(.text+0x10b): undefined reference to
`boost::system::get_system_category()'
test.cpp:(.text+0x115): undefined reference to
`boost::system::get_posix_category()'
test.cpp:(.text+0x11f): undefined reference to
`boost::system::get_posix_category()'
test.cpp:(.text+0x129): undefined reference to
`boost::system::get_system_category()'

This happens when I used '#include
<boost/date_time/posix_time/posix_time.hpp>'
I can't figure out what I'm missing



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