Opened 19 years ago
Closed 19 years ago
#255 closed Bugs (Invalid)
to_simple_string link problem
| Reported by: | andrasiel | Owned by: | az_sw_dude |
|---|---|---|---|
| Milestone: | Component: | date_time | |
| Version: | None | Severity: | |
| Keywords: | Cc: |
Description
935571 time_from_string link problem (i'm the anonymous
poster of that request )
I tried some other things like conversions from ptime
std::string ts("2002-01-20 23:59:59.000");
std::cout<<boost::posix_time::to_iso_string(t1)<<std::endl;
std::cout<<boost::posix_time::to_simple_string(t1)<<std::endl;
std::cout<<boost::posix_time::to_iso_extended_string(t1)<<std::endl;
the conversion from ptime to simple string return also
a link error:
Linking prog ...
database.o(.gnu.linkonce.t._ZN5boost9date_time15month_formatterINS_9gregorian10greg_monthENS0_13simple_formatEE12format_monthERKS3_RSo+0x13):
dans la fonction «
boost::date_time::month_formatter<boost::gregorian::greg_month,
boost::date_time::simple_format>::format_month(boost::gregorian::greg_month
const&, std::basic_ostream<char, std::char_traits<char>
>&)»:
: undefined reference to
`boost::gregorian::greg_month::as_short_string() const'
(conversions to iso and iso extended are working)
Change History (5)
comment:2 by , 19 years ago
Logged In: YES user_id=579686 I suspect you are not linking against the library. With g++ this would look like: g++ -I $(BOOST_ROOT) my_date_code.cpp -L . -l boost_date_time-gcc-s-1_31 where you have libboost_date_time-gcc-s-1_31.a in the local directory. Of course you need to build the library first if you haven't already. See documentation for instructions. Jeff
comment:3 by , 19 years ago
Logged In: YES user_id=1021845 I apologize; there is no bug my linking option was incomplete... very sorry
comment:5 by , 19 years ago
| Status: | assigned → closed |
|---|
Note:
See TracTickets
for help on using tickets.
