Android

[Android/NDK] warning: implicit declaration of function 'time' is invalid in C99

Question영 2019. 12. 18. 10:31
반응형

jni C 코드에서 만약에 위와 같은 문제가 발생했다면

 

다음과 같은 해더를 선언하면 문제가 해결됩니다.

 

#include <stdlib.h>  // rand(), srand()
#include <time.h>    // time()

 

참고하세요.


참고 자료

반응형