2013-04-25 29 views
1

誰能告訴我爲什麼當編譯cpp的代碼與NDK我得到這個錯誤:C++與NDK平臺錯誤幫助「_IOR」在此範圍內未聲明

C:/ndk/samples/fmservice/src/jni/JFmRxNative.cpp:304:24: error: expected primary-expression before 'struct' 
C:/ndk/samples/fmservice/src/jni/JFmRxNative.cpp:304:24: error: '_IOR' was not declared in this scope 
line 304 : res = ioctl(radio_fd,VIDIOC_QUERYCAP,&cap); character 24: VIDIOC_QUERYCAP 

次我使用C:\ NDK \平臺\ android-14文件

回答

1

接縫我需要補充這個#include <sys/ioctl.h>