詳細報錯信息:
‘gettimeofday’ was not declared in this scope xxx.cpp
在引用time.h的時候,要引用sys下的time.h:
一開始引用的time.h:
#include <time.h>
應改成引用sys/time.h:
#include <sys/time.h>
詳細報錯信息:
‘gettimeofday’ was not declared in this scope xxx.cpp
在引用time.h的時候,要引用sys下的time.h:
一開始引用的time.h:
#include <time.h>
應改成引用sys/time.h:
#include <sys/time.h>
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。