Boost logo

Boost :

From: Victor A. Wagner, Jr. (vawjr_at_[hidden])
Date: 2004-01-06 10:19:50


If I understand correctly, the hope was that people wouldn't have to be
aware of the intricacies of boost library naming conventions in order to
use the libraries.
IOW, the following should compile and link w/ no "additional dependencies"
required in VC7.1:
=======================================
#include <iostream >
#include <string>
#include "boost/date_time/posix_time/posix_time.hpp"

int main()
{
     boost::posix_time::ptime now =
boost::posix_time::second_clock::universal_time();
     boost::posix_time::ptime
cnow(boost::posix_time::second_clock::universal_time());
     std::string xx = to_iso_string(now);
     std::cout <<
to_iso_string(boost::posix_time::second_clock::universal_time()) << std::endl;
     std::cout << now << std::endl;
     std::cout << xx << std::endl;
     std::cout << to_iso_string(cnow) << std::endl;
     return 0;
}

============================================
it compiles just fine, but won't link without the appropriate library name.

my slight modification to SimpleLS compiles and links just fine without any
"Additional Dependencies"

Victor A. Wagner Jr. http://rudbek.com
The five most dangerous words in the English language:
               "There oughta be a law"


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk