Opened 19 years ago
Closed 19 years ago
#254 closed Bugs (Invalid)
time_from_string link problem
| Reported by: | nobody | Owned by: | az_sw_dude |
|---|---|---|---|
| Milestone: | Component: | date_time | |
| Version: | None | Severity: | |
| Keywords: | Cc: |
Description
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@hotmail.com
Change History (3)
comment:2 by , 19 years ago
Logged In: YES user_id=1021845 I apologize; there is no bug my linking option was incomplete... very sorry
comment:3 by , 19 years ago
| Status: | assigned → closed |
|---|
Note:
See TracTickets
for help on using tickets.
