Boost logo

Boost :

From: SourceForge.net (noreply_at_[hidden])
Date: 2004-04-15 06:46:07


Bugs item #935571, was opened at 2004-04-15 04:46
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=935571&group_id=7586

Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: time_from_string link problem

Initial Comment:
I'm using libboost-date-time1.31.0
I have a link error when trying this code example :
 
std::string ts("2002-01-20 23:59:59.000");
boost::posix_time::ptime
t(boost::posix_time::time_from_string(ts));
 
Linking prog ...
database.o(.gnu.linkonce.t._ZN5boost9date_time19month_str_to_ushortINS_9gregorian10greg_monthEEEtSs+0x119):
dans la fonction « unsigned short
boost::date_time::month_str_to_ushort<boost::gregorian::greg_month>(std::basic_string<char,
std::char_traits<char>, std::allocator<char> >)»:
: undefined reference to
`boost::gregorian::greg_month::get_month_map_ptr()'
collect2: ld a retourné 1 code d'état d'exécution
 
 
source :
http://www.boost.org/libs/date_time/doc/class_ptime.html
 
ptime time_from_string(const std::string&)
>From delimited string.
 
    std::string ts("2002-01-20 23:59:59.000");
    ptime t(time_from_string(ts))
 
 
 
thank you
 
al_x7_at_[hidden]

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=107586&aid=935571&group_id=7586

-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
Boost-bugs mailing list
Boost-bugs_at_[hidden]
https://lists.sourceforge.net/lists/listinfo/boost-bugs


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