Home arrow Forums
Friday, 05 December 2008  
Latest Forums
FireBoard
Welcome, Guest
Please Login or Register.    Lost Password?
Re: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
Go to bottom Post Reply Favoured: 0
TOPIC: Re:uctime_t error
#13
vasconce1o (User)
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Birthdate:
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'
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#14
softwareace (Admin)
Admin
Posts: 15
graph
User Offline Click here to see the profile of this user
Birthdate:
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
;
 
Report to moderator   Logged Logged  
 
Andreas Haberstroh
Ethernet (n) Device used to catch the Etherbunny
  The administrator has disabled public write access.
#15
vasconce1o (User)
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Birthdate:
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.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#16
vasconce1o (User)
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Birthdate:
Re:uctime_t error 7 Months, 4 Weeks ago Karma: 0  
and I #include <iostream> too.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
#17
softwareace (Admin)
Admin
Posts: 15
graph
User Offline Click here to see the profile of this user
Birthdate:
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.
 
Report to moderator   Logged Logged  
 
Andreas Haberstroh
Ethernet (n) Device used to catch the Etherbunny
  The administrator has disabled public write access.
#18
vasconce1o (User)
Posts: 14
graphgraph
User Offline Click here to see the profile of this user
Birthdate:
Re:uctime_t error 7 Months, 3 Weeks ago Karma: 0  
Sorry, but I was confused. What I previously not working.
 
Report to moderator   Logged Logged  
  The administrator has disabled public write access.
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop
Top