1
當我嘗試編譯行代碼波紋管:(我使用boost 1.51
,在UBuntu 12.04 LTS 64 bits
gcc 4.6.3
)的boost ::了posix_time」尚未聲明
#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
任何想法如何解決?
嘗試使用引號代替括號:'#include「boost/date_time/posix_time/posix_time.hpp」' – nneonneo
謝謝,但沒有奏效。 – Will