I will do that right now. Just have to figure out how.
Looking back thru the run, here is something that might help:
b7624000-b7632000 r-xp 00000000 08:01 201938
/usr/boost_1_48_0/stage/lib/libboost_date_time.so.1.4RUN FAILED (exit value 1, total time: 112ms)8.0
What I am unsure about is if the 'RUN FAILED' really points to libboost_date_time.so, or if there was just not a crlf put there.
I tend to think it does have meaning for the error, as everything I do to find some other statement causing it does not correct the problem. Only commenting out the one statement the program run without error.
Dont forget tho, that it does print out the date and then throws the error.
After 30 years of programming in C and a lapse of 10 years, I am having a hard time picking back up. Everything seems to have changed.
I am adding the last bit of code that I had not included before, but even with it commented out does not solve the problem becuase of the to_iso_extended... rest is just killing mysql connections before exit.
I have gone with an example right out of the 'book' and still get the error.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
|
date end_date = day_clock::local_day(); // just use current date for test
//Output the parts of the date - current date
date::ymd_type ymd = end_date.year_month_day();
std::cout << ymd.year << "-" << ymd.month << std::endl;
std::cout << "End" << endl;
std::cout << to_iso_extended_string( end_date ) << std::endl; - Does not work
std::cout << "End" << endl;
//std::string table_date;
//table_date = to_iso_extended_string( end_date );
//cout << "table_date: " << table_date << endl;
/*
while( true )
{
stmt->execute( "CREATE TABLE " + table_date + " ( date varchar(15), symbol varchar(10), close varchar(20), adj_close varchar(20), volume int(20), market_type varchar(20), active_feed varchar(20) )" );
work_date = work_date + single;
if( work_date > end_date ) break;
table_date = to_simple_string( work_date );
}
*/
}
delete stmt;
delete con;
return 0;
}
|