㈠ 用gcc編譯c程序出現 fatal error: graphics.h: No such file or directory compilation terminated.
graphics.h is including a c++ header sstream, you can't use it when compiling with a c compiler, switch your code to c++, that can be done by simply changing the file extension to .cpp for example or .cc and gcc will automatically use g++ when compiling the file.
大致的意思是,graphics.h 這個文件屬於c++裡面的,塵備應該使用g++來編譯,或者是gcc-c++來搭陸編譯,而派枝毀你現在是c程序,不支持這個頭文件。你再檢查下?
㈡ Ubuntu編譯Android錯誤,compilation terminated
沒找到srtp.h這個頭文件,倒數第6行那個路徑肯定不對。
你要在Android.mk文件中指定正確的頭文件所在目錄的路徑。
㈢ c語言 gcc編譯器下 time()報錯如何解決
time_t.TOxxx();//改變時間格式,然後應用新的時間格式列印就可以了,如printf("%s",time().ToString);