FFmpeg - C++中使用ffmpeg庫

ffmpeg庫的接口都是c函數,其頭文件也沒有extern "C"的聲明,因此在cpp文件裏調用ffmpeg函數要注意了。 通常來講,一個用C寫成的庫若是想被C/C++同時能夠使用,那在頭文件應該加上 #ifdef __cplusplus extern "C" { #endif函數 #ifdef __cplusplus } // endof extern "C" #endifcode 若是文件名是
相關文章
相關標籤/搜索