Boost logo

Boost Users :

From: jarry_cf_at_[hidden]
Date: 2003-03-18 01:20:38


I am a newbie of boost and i want to use boost date_time library
i have build the libboost_date_time.lib and boost_date_time.dll and put
them in the lib path
My devlope entironment is vc71 final beta+latest boost i get from cvs
yesterday
when i use some small code to test date_time_lib,i enconter with such
error:
    error LNK2019: unresolved external symbol "public: char const *
__thiscall boost::gregorian::greg_month::as_long_string(void)const " (?
as_long_string_at_greg_month_at_gregorian@boost@@QBEPBDXZ) referenced in
function "public: static class std::basic_ostream<char,struct
std::char_traits<char> > & __cdecl boost::date_time::month_formatter
<class boost::gregorian::greg_month,class
boost::date_time::simple_format>::format_month(class
boost::gregorian::greg_month const &,class std::basic_ostream<char,struct
std::char_traits<char> > &)" (?format_month
@?$month_formatter_at_Vgreg_month_at_gregorian@boost@@Vsimple_format_at_date_time@
3@@date_time_at_boost@@SAAAV?$basic_ostream_at_DU?
$char_traits_at_D@std@@@std@@ABVgreg_month_at_gregorian@3_at_AAV45@@Z)

code as follows:

#ifndef DATE_TIME_INLINE
#define DATE_TIME_INLINE
#endif

#include <boost/date_time/posix_time/posix_time.hpp>
#include <iostream>
using namespace boost::posix_time;

int main(int , char*[] )
{
    std::cout << to_simple_string(second_clock::local_time()) <<
std::endl;
}

i use vc71 command line to compile

anyone can tell me how to resolve such problems?thanks


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