|
|
uctime_t error (0 viewing)
Warning: Invalid argument supplied for foreach() in /home/ibusy.com/public_html/components/com_fireboard/template/default/fb_pathway.php on line 140
Favoured: 0
|
|
|
TOPIC: uctime_t error
|
|
|
|
uctime_t error 7 Months, 4 Weeks ago
|
Karma: 0
|
|
When I test this example:
utctime_t utcTime;
utcTime.setYMD(8,2,1);
utcTime.setHMS(13,12,10);
cout << to_simple_string(utcTime) << endl;
generalizedtime_t generalTime(utcTime);
cout << to_simple_string(generalTime) << endl;
I get this error:
:: === Primero, Debug ===
/usr/include/boost/date_time/date_formatting.hpp:44: undefined reference to `boost::gregorian::greg_month::as_short_string() const'
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:uctime_t error 7 Months, 4 Weeks ago
|
Karma: 0
|
|
Are you including the date_time library in your build?
If you look at the example directory Jamfile, you'll see the requirement:
project : requirements
<include>$(BOOST_ROOT)
<include>../../../
<library>$(BOOST_ROOT)/libs/date_time/build//boost_date_time
<define>BOOST_ALL_NO_LIB=1
;
|
|
|
|
|
|
|
Andreas Haberstroh
Ethernet (n) Device used to catch the Etherbunny
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:uctime_t error 7 Months, 4 Weeks ago
|
Karma: 0
|
|
I do this:
using namespace std;
#include <boost/asn1.hpp>
using namespace boost;
using namespace asn1;
int main()
{
utctime_t utcTime;
utcTime.setYMD(8,2,1);
utcTime.setHMS(13,12,10);
cout << to_simple_string(utcTime) << endl;
generalizedtime_t generalTime(utcTime);
cout << to_simple_string(generalTime) << endl;
return 0;
}
And I use this same way to encode/decode and work it.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:uctime_t error 7 Months, 4 Weeks ago
|
Karma: 0
|
|
and I #include <iostream> too.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:uctime_t error 7 Months, 4 Weeks ago
|
Karma: 0
|
|
okay, good. Now you can encode data to transmit over a socket. Take a look at Boost.ASIO, or look at the query.cc example.
|
|
|
|
|
|
|
Andreas Haberstroh
Ethernet (n) Device used to catch the Etherbunny
|
|
|
The administrator has disabled public write access.
|
|
|
|
Re:uctime_t error 7 Months, 3 Weeks ago
|
Karma: 0
|
|
Sorry, but I was confused. What I previously not working.
|
|
|
|
|
|
|
The administrator has disabled public write access.
|
|
|
|
|
|