当我尝试使用以下行编译代码时:(我正在使用boost 1.51
, with gcc 4.6.3
in UBuntu 12.04 LTS 64 bits
)
#include <boost/date_time/posix_time/posix_time.hpp>
dotFile << "// " << boost::posix_time::second_clock::local_time() << std::endl;
我收到此错误:
sources/sctg/src/main.cc: In function 'void printDot(sctg::Configuration*, std::string, std::vector<sctg::Task*>*, std::vector<sctg::Event*>*)':
sources/sctg/src/main.cc:1029:31: error: 'boost::posix_time' has not been declared
知道如何解决吗?